aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger
diff options
context:
space:
mode:
authorOleg Sidorkin <osidorkin@gmail.com>2022-02-10 16:49:36 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:36 +0300
commitf8f6804a3e352897afabc93afcb32081e3fca601 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger
parent5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (diff)
downloadydb-f8f6804a3e352897afabc93afcb32081e3fca601.tar.gz
Restoring authorship annotation for Oleg Sidorkin <osidorkin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r--library/cpp/logger/file.cpp8
-rw-r--r--library/cpp/logger/file.h2
-rw-r--r--library/cpp/logger/log.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/logger/file.cpp b/library/cpp/logger/file.cpp
index e7cef960f3..15a4946eda 100644
--- a/library/cpp/logger/file.cpp
+++ b/library/cpp/logger/file.cpp
@@ -52,8 +52,8 @@ void TFileLogBackend::WriteData(const TLogRecord& rec) {
}
void TFileLogBackend::ReopenLog() {
- TAtomicSharedPtr<TImpl> copy = Impl_;
- if (copy) {
- copy->ReopenLog();
- }
+ TAtomicSharedPtr<TImpl> copy = Impl_;
+ if (copy) {
+ copy->ReopenLog();
+ }
}
diff --git a/library/cpp/logger/file.h b/library/cpp/logger/file.h
index f8caacce08..10b4cd0c20 100644
--- a/library/cpp/logger/file.h
+++ b/library/cpp/logger/file.h
@@ -15,5 +15,5 @@ public:
private:
class TImpl;
- TAtomicSharedPtr<TImpl> Impl_;
+ TAtomicSharedPtr<TImpl> Impl_;
};
diff --git a/library/cpp/logger/log.cpp b/library/cpp/logger/log.cpp
index 98aff73b39..e1d70cc3d2 100644
--- a/library/cpp/logger/log.cpp
+++ b/library/cpp/logger/log.cpp
@@ -178,8 +178,8 @@ void TLog::AddLogVAList(const char* format, va_list lst) {
void TLog::ReopenLog() {
if (const auto copy = Impl_) {
- copy->ReopenLog();
- }
+ copy->ReopenLog();
+ }
}
void TLog::ReopenLogNoFlush() {