aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger
diff options
context:
space:
mode:
authordzats <dzats@yandex-team.ru>2022-02-10 16:49:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:37 +0300
commit44f31b316af517a4fbc6a82ebed8a1c51807deac (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger
parent25972584abddd173801b48d92f8719e83af797b1 (diff)
downloadydb-44f31b316af517a4fbc6a82ebed8a1c51807deac.tar.gz
Restoring authorship annotation for <dzats@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r--library/cpp/logger/element.cpp2
-rw-r--r--library/cpp/logger/log.cpp4
-rw-r--r--library/cpp/logger/thread.cpp12
-rw-r--r--library/cpp/logger/thread.h2
4 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/logger/element.cpp b/library/cpp/logger/element.cpp
index cc9974a88b..b510fe16e1 100644
--- a/library/cpp/logger/element.cpp
+++ b/library/cpp/logger/element.cpp
@@ -3,7 +3,7 @@
#include <utility>
-TLogElement::TLogElement(const TLog* parent)
+TLogElement::TLogElement(const TLog* parent)
: Parent_(parent)
, Priority_(Parent_->DefaultPriority())
{
diff --git a/library/cpp/logger/log.cpp b/library/cpp/logger/log.cpp
index 08e0e8d91b..e1d70cc3d2 100644
--- a/library/cpp/logger/log.cpp
+++ b/library/cpp/logger/log.cpp
@@ -150,7 +150,7 @@ bool TLog::IsOpen() const noexcept {
return Impl_->IsOpen();
}
-void TLog::AddLog(const char* format, ...) const {
+void TLog::AddLog(const char* format, ...) const {
va_list args;
va_start(args, format);
@@ -239,7 +239,7 @@ void TLog::Write(ELogPriority priority, const TStringBuf data) const {
Write(priority, data.data(), data.size());
}
-void TLog::Write(const char* data, size_t len) const {
+void TLog::Write(const char* data, size_t len) const {
Write(Impl_->DefaultPriority(), data, len);
}
diff --git a/library/cpp/logger/thread.cpp b/library/cpp/logger/thread.cpp
index bc868bc843..0ccf9e374b 100644
--- a/library/cpp/logger/thread.cpp
+++ b/library/cpp/logger/thread.cpp
@@ -81,9 +81,9 @@ public:
QueueOverflowCallback_();
} else {
ythrow yexception() << "log queue exhausted";
- }
+ }
}
-
+
// Write an emergency message when the memory allocator is corrupted.
// The TThreadedLogBackend object can't be used after this method is called.
inline void WriteEmergencyData(const TLogRecord& rec) noexcept {
@@ -136,14 +136,14 @@ void TThreadedLogBackend::WriteData(const TLogRecord& rec) {
void TThreadedLogBackend::ReopenLog() {
Impl_->ReopenLog();
}
-
+
void TThreadedLogBackend::ReopenLogNoFlush() {
Impl_->ReopenLogNoFlush();
}
-void TThreadedLogBackend::WriteEmergencyData(const TLogRecord& rec) {
- Impl_->WriteEmergencyData(rec);
-}
+void TThreadedLogBackend::WriteEmergencyData(const TLogRecord& rec) {
+ Impl_->WriteEmergencyData(rec);
+}
size_t TThreadedLogBackend::QueueSize() const {
return Impl_->QueueSize();
diff --git a/library/cpp/logger/thread.h b/library/cpp/logger/thread.h
index b936b0ddcb..65f7a88e87 100644
--- a/library/cpp/logger/thread.h
+++ b/library/cpp/logger/thread.h
@@ -20,7 +20,7 @@ public:
// Write an emergency message when the memory allocator is corrupted.
// The TThreadedLogBackend object can't be used after this method is called.
void WriteEmergencyData(const TLogRecord& rec);
-
+
private:
class TImpl;
THolder<TImpl> Impl_;