aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkkabulov <kkabulov@yandex-team.ru>2022-02-10 16:50:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:13 +0300
commitbd94f0cb1ab82877baa4f60df8328966d1501c9e (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent0ca1406f7cdd08c3cf45b2ee1fcc2f38dd1e6d21 (diff)
downloadydb-bd94f0cb1ab82877baa4f60df8328966d1501c9e.tar.gz
Restoring authorship annotation for <kkabulov@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--library/cpp/logger/backend.cpp10
-rw-r--r--library/cpp/logger/backend.h6
-rw-r--r--library/cpp/logger/log.cpp14
-rw-r--r--library/cpp/logger/log.h2
-rw-r--r--library/cpp/logger/thread.h2
5 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/logger/backend.cpp b/library/cpp/logger/backend.cpp
index ae60425857..b26bf5e88c 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 71a6d91ba1..d088726d6d 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 40e5731303..e1d70cc3d2 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 54b786d54d..8be984ccc8 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 d2c96c494d..65f7a88e87 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.