diff options
| author | prout <[email protected]> | 2022-02-10 16:49:43 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:43 +0300 |
| commit | d2247f243d31adde8feb765324e40c83c5a90999 (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger/log.cpp | |
| parent | 7b7fa28b9099b7adca890459a699c6ba5eeff4ca (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/log.cpp')
| -rw-r--r-- | library/cpp/logger/log.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/logger/log.cpp b/library/cpp/logger/log.cpp index 5faaf696a70..e1d70cc3d28 100644 --- a/library/cpp/logger/log.cpp +++ b/library/cpp/logger/log.cpp @@ -69,8 +69,8 @@ public: inline void AddLog(ELogPriority priority, const char* format, va_list args) const { if (!IsOpen()) { return; - } - + } + TPriorityLogStream ls(priority, this); Printf(ls, format, args); @@ -223,9 +223,9 @@ bool TLog::IsNullLog() const noexcept { } THolder<TLogBackend> TLog::ReleaseBackend() noexcept { - return Impl_->ReleaseBackend(); -} - + return Impl_->ReleaseBackend(); +} + void TLog::Write(ELogPriority priority, const char* data, size_t len) const { if (Formatter_) { const auto formated = Formatter_(priority, TStringBuf{data, len}); |
