@@ -736,24 +736,14 @@ instance LogFormatting (FetchDecision [Point header]) where
736736 ]
737737
738738instance MetaTrace (FetchDecision [Point header ]) where
739- namespaceFor (Left FetchDeclineChainIntersectionTooDeep )
740- = Namespace [] [" Decline" , " ChainIntersectionTooDeep" ]
741- namespaceFor (Left FetchDeclineChainNotPlausible )
742- = Namespace [] [" Decline" , " FetchDeclineChainNotPlausible" ]
743- namespaceFor (Left FetchDeclineAlreadyFetched )
744- = Namespace [] [" Decline" , " FetchDeclineAlreadyFetched" ]
745- namespaceFor (Left FetchDeclineInFlightThisPeer )
746- = Namespace [] [" Decline" , " FetchDeclineInFlightThisPeer" ]
747- namespaceFor (Left FetchDeclineInFlightOtherPeer )
748- = Namespace [] [" Decline" , " FetchDeclineInFlightOtherPeer" ]
749739 namespaceFor (Left _) = Namespace [] [" Decline" ]
750740 namespaceFor (Right _) = Namespace [] [" Accept" ]
751741
752- severityFor (Namespace _ [" Decline" , " FetchDeclineChainNotPlausible " ]) _ = Just Debug
753- severityFor (Namespace _ [" Decline" , " ChainIntersectionTooDeep " ]) _ = Just Notice
754- severityFor (Namespace _ [" Decline" , " FetchDeclineAlreadyFetched " ]) _ = Just Debug
755- severityFor (Namespace _ [" Decline" , " FetchDeclineInFlightThisPeer " ]) _ = Just Debug
756- severityFor (Namespace _ [" Decline" , " FetchDeclineInFlightOtherPeer " ]) _ = Just Debug
742+ severityFor (Namespace _ [" Decline" ]) ( Just ( Left FetchDeclineChainIntersectionTooDeep )) = Just Debug
743+ severityFor (Namespace _ [" Decline" ]) ( Just ( Left FetchDeclineChainNotPlausible )) = Just Notice
744+ severityFor (Namespace _ [" Decline" ]) ( Just ( Left FetchDeclineAlreadyFetched )) = Just Debug
745+ severityFor (Namespace _ [" Decline" ]) ( Just ( Left FetchDeclineInFlightThisPeer )) = Just Debug
746+ severityFor (Namespace _ [" Decline" ]) ( Just ( Left ( FetchDeclineInFlightOtherPeer ))) = Just Debug
757747 severityFor (Namespace _ [" Decline" ]) _ = Just Info
758748 severityFor (Namespace _ [" Accept" ]) _ = Just Info
759749 severityFor _ _ = Nothing
0 commit comments