Skip to content

Commit a3dde17

Browse files
authored
Merge pull request #6196 from IntersectMBO/karknu/adj_trace
Lower severity for some network tracers.
2 parents 77b69d8 + 66d9ccc commit a3dde17

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

cardano-node/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
(from `cardano-node:Cardano.Node.Tracing.Peers` to `trace-dispatcher:Cardano.Logging.Types.NodePeers`), and
88
`NodeStartupInfo` (from `cardano-tracer:Cardano.Node.Startup` to `cardano-node:Cardano.Node.Tracing.NodeStartupInfo.hs`).
99

10+
- Lower the log severity from Error to Info for TracePromoteWarmBigLedgerPeerAborted and ResponderStartFailure
11+
1012
- Add a new configuration field for fork-policy.
1113

1214
- Optionally support lightweight checkpointing.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ instance MetaTrace (TracePeerSelection extraDebugState extraFlags extraPeers Soc
708708
severityFor (Namespace [] ["PromoteWarmFailed"]) _ = Just Info
709709
severityFor (Namespace [] ["PromoteWarmDone"]) _ = Just Info
710710
severityFor (Namespace [] ["PromoteWarmAborted"]) _ = Just Info
711+
severityFor (Namespace [] ["PromoteWarmBigLedgerPeerAborted"]) _ = Just Info
711712
severityFor (Namespace [] ["DemoteWarmPeers"]) _ = Just Info
712713
severityFor (Namespace [] ["DemoteWarmFailed"]) _ = Just Info
713714
severityFor (Namespace [] ["DemoteWarmDone"]) _ = Just Info
@@ -1760,7 +1761,7 @@ instance MetaTrace (InboundGovernor.Trace addr) where
17601761

17611762
severityFor (Namespace _ ["NewConnection"]) _ = Just Debug
17621763
severityFor (Namespace _ ["ResponderRestarted"]) _ = Just Debug
1763-
severityFor (Namespace _ ["ResponderStartFailure"]) _ = Just Error
1764+
severityFor (Namespace _ ["ResponderStartFailure"]) _ = Just Info
17641765
severityFor (Namespace _ ["ResponderErrored"]) _ = Just Info
17651766
severityFor (Namespace _ ["ResponderStarted"]) _ = Just Debug
17661767
severityFor (Namespace _ ["ResponderTerminated"]) _ = Just Debug

cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ instance HasSeverityAnnotation (TracePeerSelection extraDebugState extraFlags (C
485485
TracePromoteWarmBigLedgerPeers {} -> Info
486486
TracePromoteWarmBigLedgerPeerFailed {} -> Error
487487
TracePromoteWarmBigLedgerPeerDone {} -> Info
488-
TracePromoteWarmBigLedgerPeerAborted {} -> Error
488+
TracePromoteWarmBigLedgerPeerAborted {} -> Info
489489

490490
TraceDemoteWarmBigLedgerPeers {} -> Info
491491
TraceDemoteWarmBigLedgerPeerFailed {} -> Info
@@ -586,7 +586,7 @@ instance HasSeverityAnnotation (InboundGovernor.Trace addr) where
586586
case ev of
587587
InboundGovernor.TrNewConnection {} -> Debug
588588
InboundGovernor.TrResponderRestarted {} -> Debug
589-
InboundGovernor.TrResponderStartFailure {} -> Error
589+
InboundGovernor.TrResponderStartFailure {} -> Info
590590
InboundGovernor.TrResponderErrored {} -> Info
591591
InboundGovernor.TrResponderStarted {} -> Debug
592592
InboundGovernor.TrResponderTerminated {} -> Debug

0 commit comments

Comments
 (0)