diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/stream/trace.h | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/trace.h')
-rw-r--r-- | util/stream/trace.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/util/stream/trace.h b/util/stream/trace.h index e74b6ecf3e..81228a509f 100644 --- a/util/stream/trace.h +++ b/util/stream/trace.h @@ -5,23 +5,23 @@ /** * Debug level, as set via `DBGOUT` environment variable. */ -enum ETraceLevel: ui8 { - TRACE_ERR = 1, - TRACE_WARN = 2, - TRACE_NOTICE = 3, - TRACE_INFO = 4, - TRACE_DEBUG = 5, - TRACE_DETAIL = 6, - TRACE_VERBOSE = 7 +enum ETraceLevel: ui8 { + TRACE_ERR = 1, + TRACE_WARN = 2, + TRACE_NOTICE = 3, + TRACE_INFO = 4, + TRACE_DEBUG = 5, + TRACE_DETAIL = 6, + TRACE_VERBOSE = 7 }; #if !defined(NDEBUG) && !defined(Y_ENABLE_TRACE) - #define Y_ENABLE_TRACE + #define Y_ENABLE_TRACE #endif #ifdef Y_ENABLE_TRACE - /** + /** * Writes the given data into standard debug stream if current debug level set * via `DBGOUT` environment variable permits it. * @@ -40,21 +40,21 @@ enum ETraceLevel: ui8 { * operator. * @see ETraceLevel */ - #define Y_DBGTRACE(elevel, args) Y_DBGTRACE0(int(TRACE_##elevel), args) - #define Y_DBGTRACE0(level, args) \ - do \ - if ((level) <= StdDbgLevel()) { \ - StdDbgStream() << args << Endl; \ - } \ - while (false) + #define Y_DBGTRACE(elevel, args) Y_DBGTRACE0(int(TRACE_##elevel), args) + #define Y_DBGTRACE0(level, args) \ + do \ + if ((level) <= StdDbgLevel()) { \ + StdDbgStream() << args << Endl; \ + } \ + while (false) #else - #define Y_DBGTRACE(elevel, args) \ - do { \ - } while (false) - #define Y_DBGTRACE0(level, args) \ - do { \ - } while (false) + #define Y_DBGTRACE(elevel, args) \ + do { \ + } while (false) + #define Y_DBGTRACE0(level, args) \ + do { \ + } while (false) #endif |