Skip to content

Commit

Permalink
Properly break lines in log file.
Browse files Browse the repository at this point in the history
This was `file_ << entry.text_message_with_prefix() << '\n'` initially and later refactored to use convenient `text_message_with_prefix_and_newline` call before submitting, only partially :/

PiperOrigin-RevId: 611118387
  • Loading branch information
tomokinat authored and hiroyuki-komatsu committed Feb 28, 2024
1 parent f9dca7d commit 29672c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/log_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LogFileSink : public absl::LogSink {

void Send(const absl::LogEntry &entry) override {
absl::MutexLock lock(&mutex_);
file_ << entry.text_message_with_prefix();
file_ << entry.text_message_with_prefix_and_newline();
}

void Flush() override {
Expand Down

0 comments on commit 29672c6

Please sign in to comment.