aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/global
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/logger/global
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/global')
-rw-r--r--library/cpp/logger/global/common.h2
-rw-r--r--library/cpp/logger/global/global.h4
-rw-r--r--library/cpp/logger/global/rty_formater.h2
-rw-r--r--library/cpp/logger/global/rty_formater_ut.cpp10
4 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/logger/global/common.h b/library/cpp/logger/global/common.h
index 7dcf650dec..6f06d6ae4c 100644
--- a/library/cpp/logger/global/common.h
+++ b/library/cpp/logger/global/common.h
@@ -135,7 +135,7 @@ TSimpleSharedPtr<TLogElement> GetLoggerForce(TLog& log, const TLogRecordContext&
namespace NPrivateGlobalLogger {
struct TEatStream {
- Y_FORCE_INLINE bool operator|(const IOutputStream&) const {
+ Y_FORCE_INLINE bool operator|(const IOutputStream&) const {
return true;
}
};
diff --git a/library/cpp/logger/global/global.h b/library/cpp/logger/global/global.h
index cbe71b16ea..6940d06fb7 100644
--- a/library/cpp/logger/global/global.h
+++ b/library/cpp/logger/global/global.h
@@ -10,7 +10,7 @@ void DoInitGlobalLog(const TString& logType, const int logLevel, const bool rota
void DoInitGlobalLog(THolder<TLogBackend> backend, THolder<ILoggerFormatter> formatter = {});
inline void InitGlobalLog2Null() {
- DoInitGlobalLog("null", TLOG_EMERG, false, false);
+ DoInitGlobalLog("null", TLOG_EMERG, false, false);
}
inline void InitGlobalLog2Console(int loglevel = TLOG_INFO) {
@@ -91,7 +91,7 @@ namespace NPrivateGlobalLogger {
~TVerifyEvent();
template <class T>
inline TVerifyEvent& operator<<(const T& t) {
- static_cast<IOutputStream&>(*this) << t;
+ static_cast<IOutputStream&>(*this) << t;
return *this;
}
diff --git a/library/cpp/logger/global/rty_formater.h b/library/cpp/logger/global/rty_formater.h
index 6532e1d769..3872b22458 100644
--- a/library/cpp/logger/global/rty_formater.h
+++ b/library/cpp/logger/global/rty_formater.h
@@ -34,7 +34,7 @@ namespace NLoggingImpl {
TInstant Instant;
};
- IOutputStream& operator<<(IOutputStream& out, TLocalTimeS localTimeS);
+ IOutputStream& operator<<(IOutputStream& out, TLocalTimeS localTimeS);
inline TLocalTimeS GetLocalTimeS() {
return TLocalTimeS();
diff --git a/library/cpp/logger/global/rty_formater_ut.cpp b/library/cpp/logger/global/rty_formater_ut.cpp
index 551a97c5bf..59376b5c3c 100644
--- a/library/cpp/logger/global/rty_formater_ut.cpp
+++ b/library/cpp/logger/global/rty_formater_ut.cpp
@@ -7,23 +7,23 @@ namespace {
const TStringBuf SampleRtyLog("2017-07-25 19:26:09.894 +0300");
}
-Y_UNIT_TEST_SUITE(NLoggingImplTest) {
- Y_UNIT_TEST(TestTLocalTimeSToStream) {
+Y_UNIT_TEST_SUITE(NLoggingImplTest) {
+ Y_UNIT_TEST(TestTLocalTimeSToStream) {
NLoggingImpl::TLocalTimeS lt(TInstant::ParseIso8601Deprecated(SampleISO8601));
TStringStream ss;
ss << lt;
UNIT_ASSERT_EQUAL(ss.Str(), SampleRtyLog);
}
- Y_UNIT_TEST(TestTLocalTimeSToString) {
+ Y_UNIT_TEST(TestTLocalTimeSToString) {
NLoggingImpl::TLocalTimeS lt(TInstant::ParseIso8601Deprecated(SampleISO8601));
UNIT_ASSERT_EQUAL(TString(lt), SampleRtyLog);
}
- Y_UNIT_TEST(TestTLocalTimeSAddLeft) {
+ Y_UNIT_TEST(TestTLocalTimeSAddLeft) {
NLoggingImpl::TLocalTimeS lt(TInstant::ParseIso8601Deprecated(SampleISO8601));
TStringBuf suffix("suffix");
UNIT_ASSERT_EQUAL(lt + suffix, TString(SampleRtyLog) + suffix);
}
- Y_UNIT_TEST(TestTLocalTimeSAddRight) {
+ Y_UNIT_TEST(TestTLocalTimeSAddRight) {
NLoggingImpl::TLocalTimeS lt(TInstant::ParseIso8601Deprecated(SampleISO8601));
TString prefix("prefix");
UNIT_ASSERT_EQUAL(prefix + lt, prefix + SampleRtyLog);