diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/logger | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r-- | library/cpp/logger/global/global.cpp | 2 | ||||
-rw-r--r-- | library/cpp/logger/global/global.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/log_ut.cpp | 4 | ||||
-rw-r--r-- | library/cpp/logger/system.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/logger/global/global.cpp b/library/cpp/logger/global/global.cpp index 9fbd10f666..abdf189dbf 100644 --- a/library/cpp/logger/global/global.cpp +++ b/library/cpp/logger/global/global.cpp @@ -39,5 +39,5 @@ TNullLog* CreateDefaultLogger<TNullLog>() { NPrivateGlobalLogger::TVerifyEvent::~TVerifyEvent() { const TString info = Str(); FATAL_LOG << info << Endl; - Y_FAIL("%s", info.data()); + Y_FAIL("%s", info.data()); } diff --git a/library/cpp/logger/global/global.h b/library/cpp/logger/global/global.h index cbe71b16ea..a9ac71c824 100644 --- a/library/cpp/logger/global/global.h +++ b/library/cpp/logger/global/global.h @@ -70,7 +70,7 @@ public: #define DEBUG_LOG SINGLETON_CHECKED_GENERIC_LOG(TGlobalLog, TRTYLogPreprocessor, TLOG_DEBUG, "DEBUG") #define RESOURCES_LOG SINGLETON_CHECKED_GENERIC_LOG(TGlobalLog, TRTYLogPreprocessor, TLOG_RESOURCES, "RESOURCES") -#define TEMPLATE_LOG(logLevel) SINGLETON_CHECKED_GENERIC_LOG(TGlobalLog, TRTYLogPreprocessor, logLevel, ToString(logLevel).data()) +#define TEMPLATE_LOG(logLevel) SINGLETON_CHECKED_GENERIC_LOG(TGlobalLog, TRTYLogPreprocessor, logLevel, ToString(logLevel).data()) #define IS_LOG_ACTIVE(logLevel) (TLoggerOperator<TGlobalLog>::Log().FiltrationLevel() >= logLevel) diff --git a/library/cpp/logger/log_ut.cpp b/library/cpp/logger/log_ut.cpp index 8de46f17f5..9cf1ae712f 100644 --- a/library/cpp/logger/log_ut.cpp +++ b/library/cpp/logger/log_ut.cpp @@ -174,8 +174,8 @@ void TLogTest::TestWrite() { for (size_t i = 0; i < 1000; ++i) { TVector<char> buf(i, (char)i); - test.append(buf.data(), buf.size()); - log.Write(buf.data(), buf.size()); + test.append(buf.data(), buf.size()); + log.Write(buf.data(), buf.size()); } } diff --git a/library/cpp/logger/system.cpp b/library/cpp/logger/system.cpp index 42233f63d2..74b093771b 100644 --- a/library/cpp/logger/system.cpp +++ b/library/cpp/logger/system.cpp @@ -42,7 +42,7 @@ TSysLogBackend::TSysLogBackend(const char* ident, EFacility facility, int flags) sysflags |= LOG_CONS; } - openlog(Ident.data(), sysflags, f2sf[(size_t)facility]); + openlog(Ident.data(), sysflags, f2sf[(size_t)facility]); #endif } |