@@ -1796,13 +1796,13 @@ instance ( StandardHash blk
17961796 , " snapshot" .= forMachine dtals snap
17971797 , " failure" .= show failure ]
17981798 forMachine _dtals (LedgerDB. SnapshotRequestDelayed snapshotRequestTime delayBeforeSnapshotting slots) =
1799- mconcat [ " kind" .= String " TraceLedgerDBEvent.LedgerDBSnapshotEvent. SnapshotRequestDelayed"
1799+ mconcat [ " kind" .= String " SnapshotRequestDelayed"
18001800 , " requestTime" .= show snapshotRequestTime
1801- , " delayBeforeSnapshotting " .= show delayBeforeSnapshotting
1802- , " slots" .= show slots
1801+ , " delayBeforeSnapshotting" .= show delayBeforeSnapshotting
1802+ , " slots" .= toJSON ( NonEmpty. toList slots)
18031803 ]
1804- forMachine _dtals ( LedgerDB. SnapshotRequestCompleted) =
1805- mconcat [ " kind" .= String " TraceLedgerDBEvent.LedgerDBSnapshotEvent. SnapshotRequestCompleted"
1804+ forMachine _dtals LedgerDB. SnapshotRequestCompleted =
1805+ mconcat [ " kind" .= String " SnapshotRequestCompleted"
18061806 ]
18071807
18081808
@@ -1816,6 +1816,8 @@ instance MetaTrace (LedgerDB.TraceSnapshotEvent blk) where
18161816 severityFor (Namespace _ [" TookSnapshot" ]) _ = Just Info
18171817 severityFor (Namespace _ [" DeletedSnapshot" ]) _ = Just Debug
18181818 severityFor (Namespace _ [" InvalidSnapshot" ]) _ = Just Error
1819+ severityFor (Namespace _ [" SnapshotRequestDelayed" ]) _ = Just Debug
1820+ severityFor (Namespace _ [" SnapshotRequestCompleted" ]) _ = Just Debug
18191821 severityFor _ _ = Nothing
18201822
18211823 documentFor (Namespace _ [" TookSnapshot" ]) = Just $ mconcat
@@ -1840,6 +1842,8 @@ instance MetaTrace (LedgerDB.TraceSnapshotEvent blk) where
18401842 [ Namespace [] [" TookSnapshot" ]
18411843 , Namespace [] [" DeletedSnapshot" ]
18421844 , Namespace [] [" InvalidSnapshot" ]
1845+ , Namespace [] [" SnapshotRequestDelayed" ]
1846+ , Namespace [] [" SnapshotRequestCompleted" ]
18431847 ]
18441848
18451849--------------------------------------------------------------------------------
0 commit comments