aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/core/log.h
diff options
context:
space:
mode:
authordimanne <dimanne@yandex-team.ru>2022-02-10 16:49:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:48 +0300
commit93d66104be406c5b8cdfce7be5546d72d83b547e (patch)
tree5b4284b97105f480aa2b1ffc564e8f8e5b689df9 /library/cpp/actors/core/log.h
parentb3eef5b52437f05851a3e8fb489a68db0132657b (diff)
downloadydb-93d66104be406c5b8cdfce7be5546d72d83b547e.tar.gz
Restoring authorship annotation for <dimanne@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/actors/core/log.h')
-rw-r--r--library/cpp/actors/core/log.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/actors/core/log.h b/library/cpp/actors/core/log.h
index c11a7cf3c1..a5219b5811 100644
--- a/library/cpp/actors/core/log.h
+++ b/library/cpp/actors/core/log.h
@@ -32,22 +32,22 @@
0ull) \
)
-#define LOG_LOG_SAMPLED_BY(actorCtxOrSystem, priority, component, sampleBy, ...) \
- do { \
- ::NActors::NLog::TSettings* mSettings = static_cast<::NActors::NLog::TSettings*>((actorCtxOrSystem).LoggerSettings()); \
- ::NActors::NLog::EPriority mPriority = static_cast<::NActors::NLog::EPriority>(priority); \
- ::NActors::NLog::EComponent mComponent = static_cast<::NActors::NLog::EComponent>(component); \
- if (mSettings && mSettings->Satisfies(mPriority, mComponent, sampleBy)) { \
- ::NActors::MemLogAdapter( \
- actorCtxOrSystem, priority, component, __VA_ARGS__); \
- } \
+#define LOG_LOG_SAMPLED_BY(actorCtxOrSystem, priority, component, sampleBy, ...) \
+ do { \
+ ::NActors::NLog::TSettings* mSettings = static_cast<::NActors::NLog::TSettings*>((actorCtxOrSystem).LoggerSettings()); \
+ ::NActors::NLog::EPriority mPriority = static_cast<::NActors::NLog::EPriority>(priority); \
+ ::NActors::NLog::EComponent mComponent = static_cast<::NActors::NLog::EComponent>(component); \
+ if (mSettings && mSettings->Satisfies(mPriority, mComponent, sampleBy)) { \
+ ::NActors::MemLogAdapter( \
+ actorCtxOrSystem, priority, component, __VA_ARGS__); \
+ } \
} while (0) /**/
#define LOG_LOG_S_SAMPLED_BY(actorCtxOrSystem, priority, component, sampleBy, stream) \
LOG_LOG_SAMPLED_BY(actorCtxOrSystem, priority, component, sampleBy, "%s", [&]() { \
TStringBuilder logStringBuilder; \
logStringBuilder << stream; \
- return static_cast<TString>(logStringBuilder); \
+ return static_cast<TString>(logStringBuilder); \
}().data())
#define LOG_LOG(actorCtxOrSystem, priority, component, ...) LOG_LOG_SAMPLED_BY(actorCtxOrSystem, priority, component, 0ull, __VA_ARGS__)