Skip to content

Commit af7abf0

Browse files
cmumfordpwnall
authored andcommitted
Add back space to POSIX Logger.
The space in between the header and log message was mistakenly omitted in a prior commit. Re-adding. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228202737
1 parent 58d7054 commit af7abf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/posix_logger.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class PosixLogger final : public Logger {
6868
// Print the header into the buffer.
6969
int buffer_offset = snprintf(
7070
buffer, buffer_size,
71-
"%04d/%02d/%02d-%02d:%02d:%02d.%06d %s",
71+
"%04d/%02d/%02d-%02d:%02d:%02d.%06d %s ",
7272
now_components.tm_year + 1900,
7373
now_components.tm_mon + 1,
7474
now_components.tm_mday,
@@ -79,7 +79,7 @@ class PosixLogger final : public Logger {
7979
thread_id.c_str());
8080

8181
// The header can be at most 28 characters (10 date + 15 time +
82-
// 3 spacing) plus the thread ID, which should fit comfortably into the
82+
// 3 delimiters) plus the thread ID, which should fit comfortably into the
8383
// static buffer.
8484
assert(buffer_offset <= 28 + kMaxThreadIdSize);
8585
static_assert(28 + kMaxThreadIdSize < kStackBufferSize,

0 commit comments

Comments
 (0)