File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2105,10 +2105,10 @@ instance MetaTrace (TraceGsmEvent selection) where
2105
2105
2106
2106
severityFor ns _ =
2107
2107
case ns of
2108
- Namespace _ [" EnterCaughtUp" ] -> Just Info
2109
- Namespace _ [" LeaveCaughtUp" ] -> Just Info
2110
- Namespace _ [" PreSyncingToSyncing" ] -> Just Info
2111
- Namespace _ [" SyncingToPreSyncing" ] -> Just Info
2108
+ Namespace _ [" EnterCaughtUp" ] -> Just Notice
2109
+ Namespace _ [" LeaveCaughtUp" ] -> Just Warning
2110
+ Namespace _ [" PreSyncingToSyncing" ] -> Just Notice
2111
+ Namespace _ [" SyncingToPreSyncing" ] -> Just Notice
2112
2112
Namespace _ _ -> Nothing
2113
2113
2114
2114
documentFor = \ case
Original file line number Diff line number Diff line change @@ -1756,8 +1756,14 @@ instance ToObject (TraceLocalTxSubmissionServerEvent blk) where
1756
1756
mconcat [ " kind" .= String " TraceLocalTxSubmissionServerEvent" ]
1757
1757
1758
1758
instance HasPrivacyAnnotation (TraceGsmEvent selection ) where
1759
+
1759
1760
instance HasSeverityAnnotation (TraceGsmEvent selection ) where
1760
- getSeverityAnnotation _ = Info
1761
+ getSeverityAnnotation = \ case
1762
+ GsmEventEnterCaughtUp {} -> Notice
1763
+ GsmEventLeaveCaughtUp {} -> Warning
1764
+ GsmEventPreSyncingToSyncing {} -> Notice
1765
+ GsmEventSyncingToPreSyncing {} -> Notice
1766
+
1761
1767
instance ToObject selection => Transformable Text IO (TraceGsmEvent selection ) where
1762
1768
trTransformer = trStructured
1763
1769
You can’t perform that action at this time.
0 commit comments