Thanks to Rui Pacheco. Bugfix: could occurr if logger was initialized, had "shutownlogging" and then a fatal signal occurred

This commit is contained in:
KjellKod 2013-12-13 08:36:45 -07:00
parent 68e3d2f1a5
commit aeadc490b1

View File

@ -132,7 +132,7 @@ namespace g2 {
error << "FATAL CALL but logger is NOT initialized\n"
<< "SIGNAL: " << message.get()->signal()
<< "\nMessage: \n" << message.get()->toString() << std::flush;
std::cerr << error << std::flush;
std::cerr << error.str() << std::flush;
internal::exitWithDefaultSignalHandler(message.get()->_signal_id);
}