diff options
author | dimanne <dimanne@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
commit | 93d66104be406c5b8cdfce7be5546d72d83b547e (patch) | |
tree | 5b4284b97105f480aa2b1ffc564e8f8e5b689df9 /library/cpp/actors/core | |
parent | b3eef5b52437f05851a3e8fb489a68db0132657b (diff) | |
download | ydb-93d66104be406c5b8cdfce7be5546d72d83b547e.tar.gz |
Restoring authorship annotation for <dimanne@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/actors/core')
-rw-r--r-- | library/cpp/actors/core/events.h | 2 | ||||
-rw-r--r-- | library/cpp/actors/core/log.cpp | 2 | ||||
-rw-r--r-- | library/cpp/actors/core/log.h | 20 |
3 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/actors/core/events.h b/library/cpp/actors/core/events.h index 702cf50fad..6aacb096ae 100644 --- a/library/cpp/actors/core/events.h +++ b/library/cpp/actors/core/events.h @@ -19,7 +19,7 @@ namespace NActors { ES_MON = 7, ES_INTERCONNECT_TCP = 8, ES_PROFILER = 9, - ES_YF = 10, + ES_YF = 10, ES_HTTP = 11, ES_USERSPACE = 4096, diff --git a/library/cpp/actors/core/log.cpp b/library/cpp/actors/core/log.cpp index 5f63b5af58..d8a3993916 100644 --- a/library/cpp/actors/core/log.cpp +++ b/library/cpp/actors/core/log.cpp @@ -695,7 +695,7 @@ namespace NActors { } while (!isOk); } - void ReopenLog() override { + void ReopenLog() override { } private: 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__) |