diff options
| author | babenko <[email protected]> | 2026-06-13 23:31:30 +0300 |
|---|---|---|
| committer | babenko <[email protected]> | 2026-06-13 23:49:35 +0300 |
| commit | 732b297f8ec8809088cf3e34459d71307104ae24 (patch) | |
| tree | cc0f8b89d3f552ec8439d0c53ca1dde984ad958c /library/cpp | |
| parent | 8fe8d01bcb3c7f01341d506b04dcd47e53cb77c9 (diff) | |
Include port.h from logger.h
YT_LOG_TRACE is gated on YT_ENABLE_TRACE_LOGGING, defined in
library/cpp/yt/misc/port.h. logger.h relies on that macro but does not
include port.h, so in a TU that does not pull in port.h before logger.h,
YT_LOG_TRACE silently compiles to a no-op regardless of the configured
log level. Make logger.h self-contained by including the header that
defines the macro it depends on.
commit_hash:c53f26a7dff9d3f9c5a9d9aab8ea7fa31d11ec49
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/yt/logging/logger.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/cpp/yt/logging/logger.h b/library/cpp/yt/logging/logger.h index 4cb6021e53f..cab385bf676 100644 --- a/library/cpp/yt/logging/logger.h +++ b/library/cpp/yt/logging/logger.h @@ -2,6 +2,8 @@ #include "public.h" +#include <library/cpp/yt/misc/port.h> + #include <library/cpp/yt/string/format.h> #include <library/cpp/yt/memory/ref.h> |
