aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorsabdenovch <sabdenovch@yandex-team.com>2024-12-25 00:18:49 +0300
committersabdenovch <sabdenovch@yandex-team.com>2024-12-25 00:40:58 +0300
commit75f1af270a6cf9a17b65fde6d12efbb94f235960 (patch)
tree020a041652e4a761e31486a62d14a1f0438b1a7d /library/cpp
parent51158be0406575d66f3d630816647d4660973b94 (diff)
downloadydb-75f1af270a6cf9a17b65fde6d12efbb94f235960.tar.gz
Fixed bug in logging
commit_hash:a31e79330e3ec72361743d932a47fc67f92fb7a0
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/logging/logger-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/yt/logging/logger-inl.h b/library/cpp/yt/logging/logger-inl.h
index f1be10827f..0637292037 100644
--- a/library/cpp/yt/logging/logger-inl.h
+++ b/library/cpp/yt/logging/logger-inl.h
@@ -307,10 +307,10 @@ inline void LogEventImpl(
event.SourceFile = sourceLocation.File;
event.SourceLine = sourceLocation.Line;
event.Anchor = anchor;
- logger.Write(std::move(event));
if (Y_UNLIKELY(event.Level >= ELogLevel::Alert)) {
OnCriticalLogEvent(logger, event);
}
+ logger.Write(std::move(event));
}
} // namespace NDetail