Skip to content

Commit 599a1f3

Browse files
va-kuznecovVlad Kuznecov
andauthored
Use IS_CTX_LOG_PRIORITY_ENABLED in STLOGX to get actual logger settings (#8598)
Co-authored-by: Vlad Kuznecov <va-kuznecov@nebius.com>
1 parent 243cef0 commit 599a1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/util/stlog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace NKikimr::NStLog {
6666
auto& ctx = (CTX); \
6767
const auto priority = [&]{ using namespace NActors::NLog; return (PRIO); }(); \
6868
const auto component = [&]{ using namespace NKikimrServices; using namespace NActorsServices; return (COMP); }(); \
69-
if (IS_LOG_PRIORITY_ENABLED(priority, component)) { \
69+
if (IS_CTX_LOG_PRIORITY_ENABLED(ctx, priority, component, 0ull)) { \
7070
STLOG_STREAM(__stream, __VA_ARGS__); \
7171
::NActors::MemLogAdapter(ctx, priority, component, __stream.Str(), ::NKikimr::NStLog::OutputLogJson); \
7272
}; \

0 commit comments

Comments
 (0)