Skip to content

Commit 3347940

Browse files
jutarocoot
authored andcommitted
cardano-node: Fixes for #6388
1 parent f550a6e commit 3347940

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

cardano-node/src/Cardano/Node/Tracing/Tracers/Consensus.hs

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -736,24 +736,14 @@ instance LogFormatting (FetchDecision [Point header]) where
736736
]
737737

738738
instance MetaTrace (FetchDecision [Point header]) where
739-
namespaceFor (Left FetchDeclineChainIntersectionTooDeep)
740-
= Namespace [] ["Decline", "ChainIntersectionTooDeep"]
741-
namespaceFor (Left FetchDeclineChainNotPlausible)
742-
= Namespace [] ["Decline", "FetchDeclineChainNotPlausible"]
743-
namespaceFor (Left FetchDeclineAlreadyFetched)
744-
= Namespace [] ["Decline", "FetchDeclineAlreadyFetched"]
745-
namespaceFor (Left FetchDeclineInFlightThisPeer)
746-
= Namespace [] ["Decline", "FetchDeclineInFlightThisPeer"]
747-
namespaceFor (Left FetchDeclineInFlightOtherPeer)
748-
= Namespace [] ["Decline", "FetchDeclineInFlightOtherPeer"]
749739
namespaceFor (Left _) = Namespace [] ["Decline"]
750740
namespaceFor (Right _) = Namespace [] ["Accept"]
751741

752-
severityFor (Namespace _ ["Decline", "FetchDeclineChainNotPlausible"]) _ = Just Debug
753-
severityFor (Namespace _ ["Decline", "ChainIntersectionTooDeep"]) _ = Just Notice
754-
severityFor (Namespace _ ["Decline", "FetchDeclineAlreadyFetched"]) _ = Just Debug
755-
severityFor (Namespace _ ["Decline", "FetchDeclineInFlightThisPeer"]) _ = Just Debug
756-
severityFor (Namespace _ ["Decline", "FetchDeclineInFlightOtherPeer"]) _ = Just Debug
742+
severityFor (Namespace _ ["Decline"]) (Just (Left FetchDeclineChainIntersectionTooDeep)) = Just Debug
743+
severityFor (Namespace _ ["Decline"]) (Just (Left FetchDeclineChainNotPlausible)) = Just Notice
744+
severityFor (Namespace _ ["Decline"]) (Just (Left FetchDeclineAlreadyFetched)) = Just Debug
745+
severityFor (Namespace _ ["Decline"]) (Just (Left FetchDeclineInFlightThisPeer)) = Just Debug
746+
severityFor (Namespace _ ["Decline"]) (Just (Left (FetchDeclineInFlightOtherPeer))) = Just Debug
757747
severityFor (Namespace _ ["Decline"]) _ = Just Info
758748
severityFor (Namespace _ ["Accept"]) _ = Just Info
759749
severityFor _ _ = Nothing

cardano-node/src/Cardano/Node/Tracing/Tracers/P2P.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ instance MetaTrace (ConnectionManager.Trace addr
14811481
TrHandshakeServerError {} -> Info
14821482
TrConnectionHandlerError _ _ ShutdownNode -> Critical
14831483
TrConnectionHandlerError _ _ ShutdownPeer -> Info
1484+
severityFor (Namespace _ ["ConnectionHandler"]) _ = Just Info
14841485
severityFor (Namespace _ ["ConnectionHandler"]) Nothing = Just Info
14851486
severityFor (Namespace _ ["Shutdown"]) _ = Just Info
14861487
severityFor (Namespace _ ["ConnectionExists"]) _ = Just Info

0 commit comments

Comments
 (0)