aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/log.cpp
diff options
context:
space:
mode:
authoriddqd <iddqd@yandex-team.ru>2022-02-10 16:49:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:45 +0300
commit07fce9c5f7771600d0b3d70e1f88fd8a7e164d85 (patch)
treee4aa4750fbb864d70f8c06cf03d2750e979ea3bf /library/cpp/logger/log.cpp
parentaf42068bf6cd93c976b80dd0388fa48cdf65da11 (diff)
downloadydb-07fce9c5f7771600d0b3d70e1f88fd8a7e164d85.tar.gz
Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/log.cpp')
-rw-r--r--library/cpp/logger/log.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/logger/log.cpp b/library/cpp/logger/log.cpp
index e1d70cc3d2..8d83a61196 100644
--- a/library/cpp/logger/log.cpp
+++ b/library/cpp/logger/log.cpp
@@ -1,5 +1,5 @@
-#include "log.h"
-#include "uninitialized_creator.h"
+#include "log.h"
+#include "uninitialized_creator.h"
#include "filter.h"
#include "null.h"
#include "stream.h"
@@ -13,9 +13,9 @@
#include <util/generic/yexception.h>
THolder<TLogBackend> CreateLogBackend(const TString& fname, ELogPriority priority, bool threaded) {
- TLogBackendCreatorUninitialized creator;
- creator.InitCustom(fname, priority, threaded);
- return creator.CreateLogBackend();
+ TLogBackendCreatorUninitialized creator;
+ creator.InitCustom(fname, priority, threaded);
+ return creator.CreateLogBackend();
}
THolder<TLogBackend> CreateFilteredOwningThreadedLogBackend(const TString& fname, ELogPriority priority, size_t queueLen) {
@@ -23,7 +23,7 @@ THolder<TLogBackend> CreateFilteredOwningThreadedLogBackend(const TString& fname
}
THolder<TOwningThreadedLogBackend> CreateOwningThreadedLogBackend(const TString& fname, size_t queueLen) {
- return MakeHolder<TOwningThreadedLogBackend>(CreateLogBackend(fname, LOG_MAX_PRIORITY, false).Release(), queueLen);
+ return MakeHolder<TOwningThreadedLogBackend>(CreateLogBackend(fname, LOG_MAX_PRIORITY, false).Release(), queueLen);
}
class TLog::TImpl: public TAtomicRefCount<TImpl> {
@@ -131,7 +131,7 @@ TLog::TLog()
}
TLog::TLog(const TString& fname, ELogPriority priority)
- : TLog(CreateLogBackend(fname, priority, false))
+ : TLog(CreateLogBackend(fname, priority, false))
{
}
@@ -206,7 +206,7 @@ ELogPriority TLog::DefaultPriority() const noexcept {
bool TLog::OpenLog(const char* path, ELogPriority lp) {
if (path) {
- ResetBackend(CreateLogBackend(path, lp));
+ ResetBackend(CreateLogBackend(path, lp));
} else {
ResetBackend(MakeHolder<TStreamLogBackend>(&Cerr));
}