Skip to content

Commit 9f0440a

Browse files
committed
GSM tracer: consistent namespace naming
1 parent 57e228c commit 9f0440a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,26 +2100,26 @@ instance MetaTrace (TraceGsmEvent selection) where
21002100
\case
21012101
GsmEventEnterCaughtUp {} -> Namespace [] ["EnterCaughtUp"]
21022102
GsmEventLeaveCaughtUp {} -> Namespace [] ["LeaveCaughtUp"]
2103-
GsmEventPreSyncingToSyncing {} -> Namespace [] ["GsmEventPreSyncingToSyncing"]
2104-
GsmEventSyncingToPreSyncing {} -> Namespace [] ["GsmEventSyncingToPreSyncing"]
2103+
GsmEventPreSyncingToSyncing {} -> Namespace [] ["PreSyncingToSyncing"]
2104+
GsmEventSyncingToPreSyncing {} -> Namespace [] ["SyncingToPreSyncing"]
21052105

21062106
severityFor ns _ =
21072107
case ns of
2108-
Namespace _ ["EnterCaughtUp"] -> Just Info
2109-
Namespace _ ["LeaveCaughtUp"] -> Just Info
2110-
Namespace _ ["GsmEventPreSyncingToSyncing"] -> Just Info
2111-
Namespace _ ["GsmEventSyncingToPreSyncing"] -> Just Info
2112-
Namespace _ _ -> Nothing
2108+
Namespace _ ["EnterCaughtUp"] -> Just Info
2109+
Namespace _ ["LeaveCaughtUp"] -> Just Info
2110+
Namespace _ ["PreSyncingToSyncing"] -> Just Info
2111+
Namespace _ ["SyncingToPreSyncing"] -> Just Info
2112+
Namespace _ _ -> Nothing
21132113

21142114
documentFor = \case
21152115
Namespace _ ["EnterCaughtUp"] ->
21162116
Just "Node is caught up"
21172117
Namespace _ ["LeaveCaughtUp"] ->
21182118
Just "Node is not caught up"
21192119

2120-
Namespace _ ["GsmEventPreSyncingToSyncing"] ->
2120+
Namespace _ ["PreSyncingToSyncing"] ->
21212121
Just "The Honest Availability Assumption is now satisfied"
2122-
Namespace _ ["GsmEventSyncingToPreSyncing"] ->
2122+
Namespace _ ["SyncingToPreSyncing"] ->
21232123
Just "The Honest Availability Assumption is no longer satisfied"
21242124

21252125
Namespace _ _ ->
@@ -2128,8 +2128,8 @@ instance MetaTrace (TraceGsmEvent selection) where
21282128
allNamespaces =
21292129
[ Namespace [] ["EnterCaughtUp"]
21302130
, Namespace [] ["LeaveCaughtUp"]
2131-
, Namespace [] ["GsmEventPreSyncingToSyncing"]
2132-
, Namespace [] ["GsmEventSyncingToPreSyncing"]
2131+
, Namespace [] ["PreSyncingToSyncing"]
2132+
, Namespace [] ["SyncingToPreSyncing"]
21332133
]
21342134

21352135
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)