Skip to content

Commit 24753b1

Browse files
committed
tracing: connection manager
* removed unused namespace "ImpossibleConnection" * set severity of `ConnectionManagerCounters` to `Info` (as in the legacy tracing system)
1 parent dbf343f commit 24753b1

File tree

1 file changed

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

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,19 +1489,18 @@ instance MetaTrace (ConnectionManager.Trace addr
14891489
TrHandshakeServerError {} -> Info
14901490
TrConnectionHandlerError _ _ ShutdownNode -> Critical
14911491
TrConnectionHandlerError _ _ ShutdownPeer -> Info
1492-
severityFor (Namespace _ ["ConnectionHandler"]) _ = Just Info
1492+
severityFor (Namespace _ ["ConnectionHandler"]) Nothing = Just Info
14931493
severityFor (Namespace _ ["Shutdown"]) _ = Just Info
14941494
severityFor (Namespace _ ["ConnectionExists"]) _ = Just Info
14951495
severityFor (Namespace _ ["ForbiddenConnection"]) _ = Just Info
1496-
severityFor (Namespace _ ["ImpossibleConnection"]) _ = Just Info
14971496
severityFor (Namespace _ ["ConnectionFailure"]) _ = Just Info
14981497
severityFor (Namespace _ ["ConnectionNotFound"]) _ = Just Debug
14991498
severityFor (Namespace _ ["ForbiddenOperation"]) _ = Just Info
15001499
severityFor (Namespace _ ["PruneConnections"]) _ = Just Notice
15011500
severityFor (Namespace _ ["ConnectionCleanup"]) _ = Just Debug
15021501
severityFor (Namespace _ ["ConnectionTimeWait"]) _ = Just Debug
15031502
severityFor (Namespace _ ["ConnectionTimeWaitDone"]) _ = Just Info
1504-
severityFor (Namespace _ ["ConnectionManagerCounters"]) _ = Just Debug
1503+
severityFor (Namespace _ ["ConnectionManagerCounters"]) _ = Just Info
15051504
severityFor (Namespace _ ["State"]) _ = Just Info
15061505
severityFor (Namespace _ ["UnexpectedlyFalseAssertion"]) _ = Just Error
15071506
severityFor _ _ = Nothing
@@ -1516,7 +1515,6 @@ instance MetaTrace (ConnectionManager.Trace addr
15161515
documentFor (Namespace _ ["Shutdown"]) = Just ""
15171516
documentFor (Namespace _ ["ConnectionExists"]) = Just ""
15181517
documentFor (Namespace _ ["ForbiddenConnection"]) = Just ""
1519-
documentFor (Namespace _ ["ImpossibleConnection"]) = Just ""
15201518
documentFor (Namespace _ ["ConnectionFailure"]) = Just ""
15211519
documentFor (Namespace _ ["ConnectionNotFound"]) = Just ""
15221520
documentFor (Namespace _ ["ForbiddenOperation"]) = Just ""
@@ -1550,7 +1548,6 @@ instance MetaTrace (ConnectionManager.Trace addr
15501548
, Namespace [] ["Shutdown"]
15511549
, Namespace [] ["ConnectionExists"]
15521550
, Namespace [] ["ForbiddenConnection"]
1553-
, Namespace [] ["ImpossibleConnection"]
15541551
, Namespace [] ["ConnectionFailure"]
15551552
, Namespace [] ["ConnectionNotFound"]
15561553
, Namespace [] ["ForbiddenOperation"]

0 commit comments

Comments
 (0)