diff options
author | udovichenko-r <udovichenko-r@yandex-team.ru> | 2022-02-10 16:49:22 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:22 +0300 |
commit | a6f6b22bda21d53d07bd2e0ff63a2b2abf69ede9 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/stream/trace.h | |
parent | d7e4eaec9d325e188dabb3eb1949a32a5229e9ce (diff) | |
download | ydb-a6f6b22bda21d53d07bd2e0ff63a2b2abf69ede9.tar.gz |
Restoring authorship annotation for <udovichenko-r@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/trace.h')
-rw-r--r-- | util/stream/trace.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/stream/trace.h b/util/stream/trace.h index 15720416da..e74b6ecf3e 100644 --- a/util/stream/trace.h +++ b/util/stream/trace.h @@ -1,7 +1,7 @@ -#pragma once - -#include "debug.h" - +#pragma once + +#include "debug.h" + /** * Debug level, as set via `DBGOUT` environment variable. */ @@ -13,14 +13,14 @@ enum ETraceLevel: ui8 { TRACE_DEBUG = 5, TRACE_DETAIL = 6, TRACE_VERBOSE = 7 -}; - +}; + #if !defined(NDEBUG) && !defined(Y_ENABLE_TRACE) #define Y_ENABLE_TRACE -#endif - +#endif + #ifdef Y_ENABLE_TRACE - + /** * Writes the given data into standard debug stream if current debug level set * via `DBGOUT` environment variable permits it. @@ -47,14 +47,14 @@ enum ETraceLevel: ui8 { StdDbgStream() << args << Endl; \ } \ while (false) - -#else - + +#else + #define Y_DBGTRACE(elevel, args) \ do { \ } while (false) #define Y_DBGTRACE0(level, args) \ do { \ } while (false) - -#endif + +#endif |