diff options
author | cmumford <cmumford@google.com> | 2019-01-07 11:29:24 -0800 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2019-01-07 22:03:34 -0800 |
commit | af7abf06ea061222c2c34d98e1995c5a901f374f (patch) | |
tree | f7729f4c6e43f35fc75e0eeb8081de53ba2fe758 /util | |
parent | 58d70545af9ec7f30821f973b604f8e2a2f9ebdb (diff) | |
download | leveldb-af7abf06ea061222c2c34d98e1995c5a901f374f.tar.gz |
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
Diffstat (limited to 'util')
-rw-r--r-- | util/posix_logger.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/posix_logger.h b/util/posix_logger.h index 28b290e..5685fa3 100644 --- a/util/posix_logger.h +++ b/util/posix_logger.h @@ -68,7 +68,7 @@ class PosixLogger final : public Logger { // Print the header into the buffer. int buffer_offset = snprintf( buffer, buffer_size, - "%04d/%02d/%02d-%02d:%02d:%02d.%06d %s", + "%04d/%02d/%02d-%02d:%02d:%02d.%06d %s ", now_components.tm_year + 1900, now_components.tm_mon + 1, now_components.tm_mday, @@ -79,7 +79,7 @@ class PosixLogger final : public Logger { thread_id.c_str()); // The header can be at most 28 characters (10 date + 15 time + - // 3 spacing) plus the thread ID, which should fit comfortably into the + // 3 delimiters) plus the thread ID, which should fit comfortably into the // static buffer. assert(buffer_offset <= 28 + kMaxThreadIdSize); static_assert(28 + kMaxThreadIdSize < kStackBufferSize, |