diff options
author | ndnuriev <ndnuriev@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
commit | 28045de07753ee182fc8e5ca778469d7a7c5bb20 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger/filter.h | |
parent | 3659e5861440ac98d0380de7698601ad14655a7a (diff) | |
download | ydb-28045de07753ee182fc8e5ca778469d7a7c5bb20.tar.gz |
Restoring authorship annotation for <ndnuriev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/filter.h')
-rw-r--r-- | library/cpp/logger/filter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/logger/filter.h b/library/cpp/logger/filter.h index 7166f727da..9ef83fb58c 100644 --- a/library/cpp/logger/filter.h +++ b/library/cpp/logger/filter.h @@ -7,7 +7,7 @@ class TFilteredLogBackend: public TLogBackend { THolder<TLogBackend> Backend; - ELogPriority Level; + ELogPriority Level; public: TFilteredLogBackend(THolder<TLogBackend>&& t, ELogPriority level = LOG_MAX_PRIORITY) noexcept @@ -16,7 +16,7 @@ public: { } - ELogPriority FiltrationLevel() const override { + ELogPriority FiltrationLevel() const override { return Level; } @@ -25,7 +25,7 @@ public: } void WriteData(const TLogRecord& rec) override { - if (rec.Priority <= (ELogPriority)Level) { + if (rec.Priority <= (ELogPriority)Level) { Backend->WriteData(rec); } } |