diff options
author | kkabulov <kkabulov@yandex-team.ru> | 2022-02-10 16:50:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:13 +0300 |
commit | 0ca1406f7cdd08c3cf45b2ee1fcc2f38dd1e6d21 (patch) | |
tree | 1e62faae41a40647277210bc498b6f23c583ad05 /library | |
parent | 722bfc2c9c4263c00996f34f08e7f97f30c8d220 (diff) | |
download | ydb-0ca1406f7cdd08c3cf45b2ee1fcc2f38dd1e6d21.tar.gz |
Restoring authorship annotation for <kkabulov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/logger/backend.cpp | 10 | ||||
-rw-r--r-- | library/cpp/logger/backend.h | 6 | ||||
-rw-r--r-- | library/cpp/logger/log.cpp | 14 | ||||
-rw-r--r-- | library/cpp/logger/log.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/thread.h | 2 |
5 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/logger/backend.cpp b/library/cpp/logger/backend.cpp index b26bf5e88c..ae60425857 100644 --- a/library/cpp/logger/backend.cpp +++ b/library/cpp/logger/backend.cpp @@ -2,7 +2,7 @@ #include <util/generic/vector.h> #include <util/system/mutex.h> #include <util/generic/singleton.h> -#include <util/generic/yexception.h> +#include <util/generic/yexception.h> namespace { class TGlobalLogsStorage { @@ -65,7 +65,7 @@ void TLogBackend::ReopenLogNoFlush() { void TLogBackend::ReopenAllBackends(bool flush) { Singleton<TGlobalLogsStorage>()->Reopen(flush); } - -size_t TLogBackend::QueueSize() const { - ythrow yexception() << "Not implemented."; -} + +size_t TLogBackend::QueueSize() const { + ythrow yexception() << "Not implemented."; +} diff --git a/library/cpp/logger/backend.h b/library/cpp/logger/backend.h index d088726d6d..71a6d91ba1 100644 --- a/library/cpp/logger/backend.h +++ b/library/cpp/logger/backend.h @@ -4,7 +4,7 @@ #include <util/generic/noncopyable.h> -#include <cstddef> +#include <cstddef> struct TLogRecord; @@ -25,6 +25,6 @@ public: virtual ELogPriority FiltrationLevel() const; static void ReopenAllBackends(bool flush = true); - - virtual size_t QueueSize() const; + + virtual size_t QueueSize() const; }; diff --git a/library/cpp/logger/log.cpp b/library/cpp/logger/log.cpp index e1d70cc3d2..40e5731303 100644 --- a/library/cpp/logger/log.cpp +++ b/library/cpp/logger/log.cpp @@ -116,10 +116,10 @@ public: return Backend_->FiltrationLevel(); } - inline size_t BackEndQueueSize() const { + inline size_t BackEndQueueSize() const { return Backend_->QueueSize(); - } - + } + private: THolder<TLogBackend> Backend_; ELogPriority DefaultPriority_ = LOG_DEF_PRIORITY; @@ -246,7 +246,7 @@ void TLog::Write(const char* data, size_t len) const { void TLog::SetFormatter(TLogFormatter formatter) noexcept { Formatter_ = std::move(formatter); } - -size_t TLog::BackEndQueueSize() const { - return Impl_->BackEndQueueSize(); -} + +size_t TLog::BackEndQueueSize() const { + return Impl_->BackEndQueueSize(); +} diff --git a/library/cpp/logger/log.h b/library/cpp/logger/log.h index 8be984ccc8..54b786d54d 100644 --- a/library/cpp/logger/log.h +++ b/library/cpp/logger/log.h @@ -75,7 +75,7 @@ public: // Call `ReopenLogNoFlush()` of the underlying backend. void ReopenLogNoFlush(); // Call `QueueSize()` of the underlying backend. - size_t BackEndQueueSize() const; + size_t BackEndQueueSize() const; // Set log default priority. // NOTE: not thread safe. diff --git a/library/cpp/logger/thread.h b/library/cpp/logger/thread.h index 65f7a88e87..d2c96c494d 100644 --- a/library/cpp/logger/thread.h +++ b/library/cpp/logger/thread.h @@ -15,7 +15,7 @@ public: void WriteData(const TLogRecord& rec) override; void ReopenLog() override; void ReopenLogNoFlush() override; - size_t QueueSize() const override; + size_t QueueSize() const override; // Write an emergency message when the memory allocator is corrupted. // The TThreadedLogBackend object can't be used after this method is called. |