Skip to content

Commit

Permalink
Renamed connection-manager trace
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Dec 13, 2024
1 parent f7799e7 commit d9b8108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cardano-node/src/Cardano/Node/Tracing/Tracers/P2P.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down
4 changes: 2 additions & 2 deletions cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down

0 comments on commit d9b8108

Please sign in to comment.