@@ -554,6 +554,9 @@ instance LogFormatting (TracePeerSelection SockAddr) where
554
554
, " upstreamyness" .= dpssUpstreamyness ds
555
555
, " fetchynessBlocks" .= dpssFetchynessBlocks ds
556
556
]
557
+ forMachine _dtal (TraceVerifyPeerSnapshot result) =
558
+ mconcat [ " kind" .= String " VerifyPeerSnapshot"
559
+ , " result" .= result]
557
560
558
561
forHuman = pack . show
559
562
@@ -678,6 +681,8 @@ instance MetaTrace (TracePeerSelection SockAddr) where
678
681
Namespace [] [" ChurnTimeout" ]
679
682
namespaceFor TraceDebugState {} =
680
683
Namespace [] [" DebugState" ]
684
+ namespaceFor TraceVerifyPeerSnapshot {} =
685
+ Namespace [] [" VerifyPeerSnapshot" ]
681
686
682
687
severityFor (Namespace [] [" LocalRootPeersChanged" ]) _ = Just Notice
683
688
severityFor (Namespace [] [" TargetsChanged" ]) _ = Just Notice
@@ -713,6 +718,7 @@ instance MetaTrace (TracePeerSelection SockAddr) where
713
718
severityFor (Namespace [] [" ChurnAction" ]) _ = Just Info
714
719
severityFor (Namespace [] [" ChurnTimeout" ]) _ = Just Notice
715
720
severityFor (Namespace [] [" DebugState" ]) _ = Just Info
721
+ severityFor (Namespace [] [" VerifyPeerSnapshot" ]) _ = Just Error
716
722
severityFor _ _ = Nothing
717
723
718
724
documentFor (Namespace [] [" LocalRootPeersChanged" ]) = Just " "
@@ -771,6 +777,8 @@ instance MetaTrace (TracePeerSelection SockAddr) where
771
777
" Outbound Governor was killed unexpectedly"
772
778
documentFor (Namespace [] [" DebugState" ]) = Just
773
779
" peer selection internal state"
780
+ documentFor (Namespace [] [" VerifyPeerSnapshot" ]) = Just
781
+ " Big ledger peer snapshot file failed integrity check against the ledger"
774
782
documentFor _ = Nothing
775
783
776
784
metricsDocFor (Namespace [] [" ChurnAction" ]) =
@@ -816,6 +824,7 @@ instance MetaTrace (TracePeerSelection SockAddr) where
816
824
, Namespace [] [" PickInboundPeers" ]
817
825
, Namespace [] [" OutboundGovernorCriticalFailure" ]
818
826
, Namespace [] [" DebugState" ]
827
+ , Namespace [] [" VerifyPeerSnapshot" ]
819
828
]
820
829
821
830
--------------------------------------------------------------------------------
0 commit comments