Skip to content

Commit 5daeeda

Browse files
UdjinM6codablock
authored andcommitted
Batched logger should not break log parsing
It's expected to have timestamp to be the first thing in every row if it's not a whitespace
1 parent 2aed51c commit 5daeeda

File tree

2 files changed

+93
-93
lines changed

2 files changed

+93
-93
lines changed

src/batchedlogger.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class CBatchedLogger
1717
virtual ~CBatchedLogger();
1818

1919
template<typename... Args>
20-
void Printf(const std::string& fmt, const Args&... args)
20+
void Batch(const std::string& fmt, const Args&... args)
2121
{
22-
msg += strprintf(fmt, args...);
22+
msg += " " + strprintf(fmt, args...) + "\n";
2323
}
2424

2525
void Flush();

0 commit comments

Comments
 (0)