Skip to content

Commit

Permalink
Batched logger should not break log parsing
Browse files Browse the repository at this point in the history
It's expected to have timestamp to be the first thing in every row if it's not a whitespace
  • Loading branch information
UdjinM6 authored and codablock committed Jan 11, 2019
1 parent 2aed51c commit 5daeeda
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions src/batchedlogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class CBatchedLogger
virtual ~CBatchedLogger();

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

void Flush();
Expand Down
Loading

0 comments on commit 5daeeda

Please sign in to comment.