summaryrefslogtreecommitdiffstats
path: root/library/cpp/logger
diff options
context:
space:
mode:
authorOleg Sidorkin <[email protected]>2022-02-10 16:49:36 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:36 +0300
commit5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (patch)
treef16a3558ca40d453a1c6a2ed764bd75d64cffade /library/cpp/logger
parentcd33f9aa8461f8e2b0b9e68efbb6bc9856197dc9 (diff)
Restoring authorship annotation for Oleg Sidorkin <[email protected]>. Commit 1 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 15a4946edac..e7cef960f31 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 10b4cd0c20e..f8caacce087 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 e1d70cc3d28..98aff73b39d 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() {