diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/logger | |
parent | 7fe839092527589b38f014d854c51565b3c1adfa (diff) | |
download | ydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r-- | library/cpp/logger/global/common.cpp | 2 | ||||
-rw-r--r-- | library/cpp/logger/global/common.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/logger/global/common.cpp b/library/cpp/logger/global/common.cpp index cfb8ccfe2d..4fb05c19b4 100644 --- a/library/cpp/logger/global/common.cpp +++ b/library/cpp/logger/global/common.cpp @@ -15,7 +15,7 @@ namespace NLoggingImpl { TString newPath = Sprintf("%s_%s_%" PRIu64, logType.data(), NLoggingImpl::GetLocalTimeSSimple().data(), static_cast<ui64>(Now().MicroSeconds())); TFsPath(logType).RenameTo(newPath); } - if (startAsDaemon && (logType == "console"sv || logType == "cout"sv || logType == "cerr"sv)) { + if (startAsDaemon && (logType == "console"sv || logType == "cout"sv || logType == "cerr"sv)) { logType = "null"; } diff --git a/library/cpp/logger/global/common.h b/library/cpp/logger/global/common.h index c794933216..7dcf650dec 100644 --- a/library/cpp/logger/global/common.h +++ b/library/cpp/logger/global/common.h @@ -69,7 +69,7 @@ namespace NLoggingImpl { TString GetLocalTimeSSimple(); // Returns correct log type to use - TString PrepareToOpenLog(TString logType, int logLevel, bool rotation, bool startAsDaemon); + TString PrepareToOpenLog(TString logType, int logLevel, bool rotation, bool startAsDaemon); template <class TLoggerType> void InitLogImpl(TString logType, const int logLevel, const bool rotation, const bool startAsDaemon) { @@ -78,11 +78,11 @@ namespace NLoggingImpl { } struct TLogRecordContext { - constexpr TLogRecordContext(const TSourceLocation& sourceLocation, TStringBuf customMessage, ELogPriority priority) - : SourceLocation(sourceLocation) - , CustomMessage(customMessage) - , Priority(priority) - {} + constexpr TLogRecordContext(const TSourceLocation& sourceLocation, TStringBuf customMessage, ELogPriority priority) + : SourceLocation(sourceLocation) + , CustomMessage(customMessage) + , Priority(priority) + {} TSourceLocation SourceLocation; TStringBuf CustomMessage; |