@@ -558,6 +558,9 @@ instance LogFormatting (TracePeerSelection SockAddr) where
558
558
, " upstreamyness" .= dpssUpstreamyness ds
559
559
, " fetchynessBlocks" .= dpssFetchynessBlocks ds
560
560
]
561
+ forMachine _dtal (TraceVerifyPeerSnapshot result) =
562
+ mconcat [ " kind" .= String " VerifyPeerSnapshot"
563
+ , " result" .= result]
561
564
562
565
forHuman = pack . show
563
566
@@ -684,6 +687,8 @@ instance MetaTrace (TracePeerSelection SockAddr) where
684
687
Namespace [] [" ChurnTimeout" ]
685
688
namespaceFor TraceDebugState {} =
686
689
Namespace [] [" DebugState" ]
690
+ namespaceFor TraceVerifyPeerSnapshot {} =
691
+ Namespace [] [" VerifyPeerSnapshot" ]
687
692
688
693
severityFor (Namespace [] [" LocalRootPeersChanged" ]) _ = Just Notice
689
694
severityFor (Namespace [] [" TargetsChanged" ]) _ = Just Notice
@@ -719,6 +724,7 @@ instance MetaTrace (TracePeerSelection SockAddr) where
719
724
severityFor (Namespace [] [" ChurnAction" ]) _ = Just Info
720
725
severityFor (Namespace [] [" ChurnTimeout" ]) _ = Just Notice
721
726
severityFor (Namespace [] [" DebugState" ]) _ = Just Info
727
+ severityFor (Namespace [] [" VerifyPeerSnapshot" ]) _ = Just Error
722
728
severityFor _ _ = Nothing
723
729
724
730
documentFor (Namespace [] [" LocalRootPeersChanged" ]) = Just " "
@@ -777,6 +783,8 @@ instance MetaTrace (TracePeerSelection SockAddr) where
777
783
" Outbound Governor was killed unexpectedly"
778
784
documentFor (Namespace [] [" DebugState" ]) = Just
779
785
" peer selection internal state"
786
+ documentFor (Namespace [] [" VerifyPeerSnapshot" ]) = Just
787
+ " Big ledger peer snapshot file failed integrity check against the ledger"
780
788
documentFor _ = Nothing
781
789
782
790
metricsDocFor (Namespace [] [" ChurnAction" ]) =
@@ -822,6 +830,7 @@ instance MetaTrace (TracePeerSelection SockAddr) where
822
830
, Namespace [] [" PickInboundPeers" ]
823
831
, Namespace [] [" OutboundGovernorCriticalFailure" ]
824
832
, Namespace [] [" DebugState" ]
833
+ , Namespace [] [" VerifyPeerSnapshot" ]
825
834
]
826
835
827
836
--------------------------------------------------------------------------------
0 commit comments