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 | |
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')
-rw-r--r-- | util/stream/debug.cpp | 12 | ||||
-rw-r--r-- | util/stream/debug.h | 2 | ||||
-rw-r--r-- | util/stream/trace.h | 28 |
3 files changed, 21 insertions, 21 deletions
diff --git a/util/stream/debug.cpp b/util/stream/debug.cpp index 6a43700e59..afd5b3e1c7 100644 --- a/util/stream/debug.cpp +++ b/util/stream/debug.cpp @@ -27,9 +27,9 @@ namespace { } } else { Out = &Cnull; - Level = 0; - } - } + Level = 0; + } + } IOutputStream* Out; int Level; @@ -44,7 +44,7 @@ struct TSingletonTraits<TDbgSelector> { IOutputStream& StdDbgStream() noexcept { return *(Singleton<TDbgSelector>()->Out); } - + int StdDbgLevel() noexcept { - return Singleton<TDbgSelector>()->Level; -} + return Singleton<TDbgSelector>()->Level; +} diff --git a/util/stream/debug.h b/util/stream/debug.h index 123fdaefda..92d6d4b42d 100644 --- a/util/stream/debug.h +++ b/util/stream/debug.h @@ -40,7 +40,7 @@ IOutputStream& StdDbgStream() noexcept; * @see DBGTRACE */ int StdDbgLevel() noexcept; - + /** * Standard debug stream. * 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 |