Skip to content

Commit 2bfa9be

Browse files
committed
MetaTrace fixes
1 parent d6e7756 commit 2bfa9be

File tree

1 file changed

+2
-0
lines changed
  • cardano-node/src/Cardano/Node/Tracing/Tracers

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,7 @@ instance MetaTrace handler => MetaTrace (ConnectionManager.Trace addr handler) w
14731473
severityFor (Namespace _ ["TerminatedConnection"]) _ = Just Debug
14741474
severityFor (Namespace out ("ConnectionHandler" : tl)) (Just (TrConnectionHandler _ hdl)) =
14751475
severityFor (Namespace out tl) (Just hdl)
1476+
severityFor (Namespace _ ("ConnectionHandler" : _)) Nothing = Just Info
14761477
severityFor (Namespace _ ["Shutdown"]) _ = Just Info
14771478
severityFor (Namespace _ ["ConnectionExists"]) _ = Just Info
14781479
severityFor (Namespace _ ["ForbiddenConnection"]) _ = Just Info
@@ -1558,6 +1559,7 @@ instance MetaTrace (ConnectionHandlerTrace versionNumber agreedOptions) where
15581559
severityFor (Namespace _ ["HandshakeServerError"]) _ = Just Info
15591560
severityFor (Namespace _ ["Error"]) (Just (TrConnectionHandlerError _ _ ShutdownNode)) = Just Critical
15601561
severityFor (Namespace _ ["Error"]) (Just (TrConnectionHandlerError _ _ ShutdownPeer)) = Just Info
1562+
severityFor (Namespace _ ["Error"]) Nothing = Just Info
15611563
severityFor _ _ = Nothing
15621564

15631565
documentFor (Namespace _ ["HandshakeSuccess"]) = Just ""

0 commit comments

Comments
 (0)