aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/logger
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r--library/cpp/logger/global/global.cpp2
-rw-r--r--library/cpp/logger/global/global.h2
-rw-r--r--library/cpp/logger/log_ut.cpp4
-rw-r--r--library/cpp/logger/system.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/logger/global/global.cpp b/library/cpp/logger/global/global.cpp
index abdf189dbf..9fbd10f666 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 a9ac71c824..cbe71b16ea 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 9cf1ae712f..8de46f17f5 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 74b093771b..42233f63d2 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
}