Skip to content

Commit

Permalink
Changed severity of 'DiffusionErrored' log message
Browse files Browse the repository at this point in the history
It ought to be an `Alert`, these are terminal errors which require
immediate attention from an operator.
  • Loading branch information
coot committed Sep 22, 2022
1 parent a5724ad commit 1757c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-node/src/Cardano/Node/Tracing/Tracers/Diffusion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ severityDiffusionInit ND.ListeningServerSocket {} = Info
severityDiffusionInit ND.ServerSocketUp {} = Info
severityDiffusionInit ND.UnsupportedLocalSystemdSocket {} = Info
severityDiffusionInit ND.UnsupportedReadySocketCase {} = Info
severityDiffusionInit ND.DiffusionErrored {} = Info
severityDiffusionInit ND.DiffusionErrored {} = Alert

namesForDiffusionInit :: ND.InitializationTracer rard ladr -> [Text]
namesForDiffusionInit ND.RunServer {} =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ import qualified Ouroboros.Network.Diffusion as ND

instance HasPrivacyAnnotation (ND.InitializationTracer ntnAddr ntcAddr)
instance HasSeverityAnnotation (ND.InitializationTracer ntnAddr ntcAddr) where
getSeverityAnnotation ND.DiffusionErrored {} = Alert
getSeverityAnnotation _ = Info

instance HasPrivacyAnnotation (NtC.HandshakeTr LocalAddress NodeToClientVersion)
Expand Down

0 comments on commit 1757c00

Please sign in to comment.