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