mirror of
https://github.com/KjellKod/g3log.git
synced 2025-03-01 10:57:57 +01:00
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:
commit
6c1698c4f7
@ -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)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user