From d9b810811c6754be45293ecd0dbf02887274f67c Mon Sep 17 00:00:00 2001 From: Marcin Szamotulski Date: Wed, 11 Dec 2024 15:48:00 +0100 Subject: [PATCH] Renamed connection-manager trace --- cardano-node/src/Cardano/Node/Tracing/Tracers/P2P.hs | 4 ++-- cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cardano-node/src/Cardano/Node/Tracing/Tracers/P2P.hs b/cardano-node/src/Cardano/Node/Tracing/Tracers/P2P.hs index 9ab64b08af8..dbb96b32eb3 100644 --- a/cardano-node/src/Cardano/Node/Tracing/Tracers/P2P.hs +++ b/cardano-node/src/Cardano/Node/Tracing/Tracers/P2P.hs @@ -1205,13 +1205,13 @@ instance (Show addr, Show versionNumber, Show agreedOptions, LogFormatting addr, ] forMachine _dtal (TrConnect (Just localAddress) remoteAddress diffusionMode) = mconcat - [ "kind" .= String "ConnectTo" + [ "kind" .= String "Connect" , "connectionId" .= toJSON ConnectionId { localAddress, remoteAddress } , "diffusionMode" .= toJSON diffusionMode ] forMachine dtal (TrConnect Nothing remoteAddress diffusionMode) = mconcat - [ "kind" .= String "ConnectTo" + [ "kind" .= String "Connect" , "remoteAddress" .= forMachine dtal remoteAddress , "diffusionMode" .= toJSON diffusionMode ] diff --git a/cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs b/cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs index 7f3b9e17818..3f6e9521215 100644 --- a/cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs +++ b/cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs @@ -2368,13 +2368,13 @@ instance (Show addr, Show versionNumber, Show agreedOptions, ToObject addr, ] TrConnect (Just localAddress) remoteAddress diffusionMode -> mconcat - [ "kind" .= String "ConnectTo" + [ "kind" .= String "Connect" , "connectionId" .= toJSON ConnectionId { localAddress, remoteAddress } , "diffusionMode" .= toJSON diffusionMode ] TrConnect Nothing remoteAddress diffusionMode -> mconcat - [ "kind" .= String "ConnectTo" + [ "kind" .= String "Connect" , "remoteAddress" .= toObject verb remoteAddress , "diffusionMode" .= toJSON diffusionMode ]