diff options
author | udovichenko-r <udovichenko-r@yandex-team.ru> | 2022-02-10 16:49:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:21 +0300 |
commit | d7e4eaec9d325e188dabb3eb1949a32a5229e9ce (patch) | |
tree | 75f143caa4e1e35b760846b22310ede3212d7f63 /util/stream | |
parent | 027f7b7f6644e258a5840869b9b82c79e1ebeee0 (diff) | |
download | ydb-d7e4eaec9d325e188dabb3eb1949a32a5229e9ce.tar.gz |
Restoring authorship annotation for <udovichenko-r@yandex-team.ru>. Commit 1 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 afd5b3e1c73..6a43700e592 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 92d6d4b42da..123fdaefda1 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 e74b6ecf3e0..15720416da2 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 |