stderr logger: include prefix & runtime, end message with newline

This commit is contained in:
Moritz Bunkus 2022-09-18 23:44:21 +02:00
parent 5ee5087f2d
commit 6266d75230
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -127,7 +127,7 @@ stderr_target_c::stderr_target_c()
void
stderr_target_c::log_line(std::string const &message) {
std::cerr << message;
std::cerr << fmt::format("[mtx] +{0}ms {1}\n", runtime(), message);
}
// ----------------------------------------------------------------------