Merge pull request #86 from KjellKod/cerr_when_fatal_exit

use 'toString' to get the formatted output in the fatal cerr message …
This commit is contained in:
Kjell Hedström 2016-03-30 16:42:43 -06:00
commit 6c1698c4f7

View File

@ -54,7 +54,7 @@ namespace g3 {
uniqueMsg->write().append("). ").append(exiting).append(" ").append(reason)
.append("\nLog content flushed flushed sucessfully to sink\n\n");
std::cerr << uniqueMsg->message() << std::flush;
std::cerr << uniqueMsg->toString() << std::flush;
for (auto& sink : _sinks) {
LogMessage msg(*(uniqueMsg));
sink->send(LogMessageMover(std::move(msg)));