diff options
author | alexvru <alexvru@ydb.tech> | 2023-07-08 15:41:11 +0300 |
---|---|---|
committer | alexvru <alexvru@ydb.tech> | 2023-07-08 15:41:11 +0300 |
commit | 9f0b257a72fa295d1f62c9b6581770703fed052f (patch) | |
tree | 1f0c28a24dbf12971922ec283aac96acda4d62e1 /library/cpp | |
parent | 69560a9e7f318c1a519da1a91faf84855d3b1050 (diff) | |
download | ydb-9f0b257a72fa295d1f62c9b6581770703fed052f.tar.gz |
Move LOGGER component from kikimr-specific services to actorlib common ones KIKIMR-11082
Diffstat (limited to 'library/cpp')
4 files changed, 4 insertions, 3 deletions
diff --git a/library/cpp/actors/interconnect/ut/lib/node.h b/library/cpp/actors/interconnect/ut/lib/node.h index 3a82ba07e7..e63a95c31b 100644 --- a/library/cpp/actors/interconnect/ut/lib/node.h +++ b/library/cpp/actors/interconnect/ut/lib/node.h @@ -68,7 +68,7 @@ public: const TActorId loggerActorId = loggerSettings ? loggerSettings->LoggerActorId : TActorId(0, "logger"); if (!loggerSettings) { - constexpr ui32 LoggerComponentId = 410; // NKikimrServices::LOGGER + constexpr ui32 LoggerComponentId = NActorsServices::LOGGER; loggerSettings = MakeIntrusive<NLog::TSettings>( loggerActorId, (NLog::EComponent)LoggerComponentId, diff --git a/library/cpp/actors/interconnect/ut_huge_cluster/huge_cluster.cpp b/library/cpp/actors/interconnect/ut_huge_cluster/huge_cluster.cpp index 458ead3459..cb46a62ed9 100644 --- a/library/cpp/actors/interconnect/ut_huge_cluster/huge_cluster.cpp +++ b/library/cpp/actors/interconnect/ut_huge_cluster/huge_cluster.cpp @@ -84,7 +84,7 @@ Y_UNIT_TEST_SUITE(HugeCluster) { // custom logger settings auto loggerSettings = MakeIntrusive<NLog::TSettings>( TActorId(0, "logger"), - (NLog::EComponent)410, + NActorsServices::LOGGER, priority, priority, 0U); diff --git a/library/cpp/actors/protos/services_common.proto b/library/cpp/actors/protos/services_common.proto index afa0ec0073..1191859f03 100644 --- a/library/cpp/actors/protos/services_common.proto +++ b/library/cpp/actors/protos/services_common.proto @@ -14,6 +14,7 @@ enum EServiceCommon { INTERCONNECT_NETWORK = 6; INTERCONNECT_SESSION = 7; HTTP = 8; + LOGGER = 9; // This value is reserved boundary. Is must not be aliased with any values // TODO: use reseved values upon protobuf update diff --git a/library/cpp/actors/testlib/test_runtime.cpp b/library/cpp/actors/testlib/test_runtime.cpp index 9274574767..dad62ca697 100644 --- a/library/cpp/actors/testlib/test_runtime.cpp +++ b/library/cpp/actors/testlib/test_runtime.cpp @@ -513,7 +513,7 @@ namespace NActors { void TTestActorRuntimeBase::InitNode(TNodeDataBase* node, size_t nodeIndex) { const NActors::TActorId loggerActorId = NActors::TActorId(FirstNodeId + nodeIndex, "logger"); - node->LogSettings = new NActors::NLog::TSettings(loggerActorId, 410 /* NKikimrServices::LOGGER */, + node->LogSettings = new NActors::NLog::TSettings(loggerActorId, NActorsServices::LOGGER, NActors::NLog::PRI_WARN, NActors::NLog::PRI_WARN, 0); node->LogSettings->SetAllowDrop(false); node->LogSettings->SetThrottleDelay(TDuration::Zero()); |