mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 10:23:50 +01:00
use 'toString' to get the formatted output in the fatal cerr message when a LOG fatal or CONTRACT happens. This was already OK on the sink side
This commit is contained in:
parent
7d0779d92d
commit
bfe1e8ad19
@ -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…
Reference in New Issue
Block a user