diff options
author | bbiff <bbiff@yandex-team.com> | 2022-07-29 11:15:14 +0300 |
---|---|---|
committer | bbiff <bbiff@yandex-team.com> | 2022-07-29 11:15:14 +0300 |
commit | b45274303f581b597349d67572a79bd4107df5ab (patch) | |
tree | 3a7a9e25ae41fde7f07315c70d227279a21cce88 /library/cpp | |
parent | 6680613e3d1f09a604866924b2a21855ffbeb249 (diff) | |
download | ydb-b45274303f581b597349d67572a79bd4107df5ab.tar.gz |
reduce debug logs
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/interconnect/interconnect_nameserver_dynamic.cpp | 12 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/logging.h | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/library/cpp/actors/interconnect/interconnect_nameserver_dynamic.cpp b/library/cpp/actors/interconnect/interconnect_nameserver_dynamic.cpp index 79007f27387..6ab3d84724d 100644 --- a/library/cpp/actors/interconnect/interconnect_nameserver_dynamic.cpp +++ b/library/cpp/actors/interconnect/interconnect_nameserver_dynamic.cpp @@ -34,18 +34,18 @@ namespace NActors { TString str = TStringBuilder() << "\n > Node " << nodeId << " `" << node.Address << "`:" << node.Port << ", host: " << node.Host << ", resolveHost: " << node.ResolveHost; logMsg += str; } - LOG_DEBUG_IC("ICN01", "%s", logMsg.c_str()); + LOG_TRACE_IC("ICN01", "%s", logMsg.c_str()); } bool IsNodeUpdated(const ui32 nodeId, const TString& address, const ui32 port) { bool printInfo = false; auto it = NodeTable.find(nodeId); if (it == NodeTable.end()) { - LOG_DEBUG_IC("ICN02", "New node %u `%s`: %u", + LOG_TRACE_IC("ICN02", "New node %u `%s`: %u", nodeId, address.c_str(), port); printInfo = true; } else if (it->second.Address != address || it->second.Port != port) { - LOG_DEBUG_IC("ICN03", "Updated node %u `%s`: %u (from `%s`: %u)", + LOG_TRACE_IC("ICN03", "Updated node %u `%s`: %u (from `%s`: %u)", nodeId, address.c_str(), port, it->second.Address.c_str(), it->second.Port); printInfo = true; Send(TActivationContext::InterconnectProxy(nodeId), new TEvInterconnect::TEvDisconnect); @@ -132,7 +132,7 @@ namespace NActors { const TActorContext& ctx) { auto request = ev->Get(); - LOG_DEBUG_IC("ICN04", "Update TEvNodesInfo with sz: %lu ", request->Nodes.size()); + LOG_TRACE_IC("ICN04", "Update TEvNodesInfo with sz: %lu ", request->Nodes.size()); bool printInfo = false; ui32 compactionCount = 0; @@ -145,7 +145,7 @@ namespace NActors { for (auto& pending : PendingRequests) { if (pending.Request && pending.Request->Get()->Record.GetNodeId() == node.NodeId) { - LOG_DEBUG_IC("ICN05", "Pending nodeId: %u discovered", node.NodeId); + LOG_TRACE_IC("ICN05", "Pending nodeId: %u discovered", node.NodeId); RegisterWithSameMailbox( CreateResolveActor(node.NodeId, NodeTable[node.NodeId], pending.Request->Sender, SelfId(), pending.Deadline)); pending.Request.Reset(); @@ -169,7 +169,7 @@ namespace NActors { } }; - IActor* CreateDynamicNameserver(const TIntrusivePtr<TTableNameserverSetup>& setup, + IActor* CreateDynamicNameserver(const TIntrusivePtr<TTableNameserverSetup>& setup, const TDuration& pendingPeriod, ui32 poolId) { return new TInterconnectDynamicNameserver(setup, pendingPeriod, poolId); diff --git a/library/cpp/actors/interconnect/logging.h b/library/cpp/actors/interconnect/logging.h index c429d1cade7..010a4aa93bf 100644 --- a/library/cpp/actors/interconnect/logging.h +++ b/library/cpp/actors/interconnect/logging.h @@ -35,6 +35,7 @@ #define LOG_NOTICE_IC(marker, ...) LOG_LOG_IC(::NActorsServices::INTERCONNECT, marker, ::NActors::NLog::PRI_NOTICE, __VA_ARGS__) #define LOG_INFO_IC(marker, ...) LOG_LOG_IC(::NActorsServices::INTERCONNECT, marker, ::NActors::NLog::PRI_INFO, __VA_ARGS__) #define LOG_DEBUG_IC(marker, ...) LOG_LOG_IC(::NActorsServices::INTERCONNECT, marker, ::NActors::NLog::PRI_DEBUG, __VA_ARGS__) +#define LOG_TRACE_IC(marker, ...) LOG_LOG_IC(::NActorsServices::INTERCONNECT, marker, ::NActors::NLog::PRI_TRACE, __VA_ARGS__) #define LOG_EMER_IC_SESSION(marker, ...) LOG_LOG_IC(::NActorsServices::INTERCONNECT_SESSION, marker, ::NActors::NLog::PRI_EMER, __VA_ARGS__) #define LOG_ALERT_IC_SESSION(marker, ...) LOG_LOG_IC(::NActorsServices::INTERCONNECT_SESSION, marker, ::NActors::NLog::PRI_ALERT, __VA_ARGS__) |