Skip to content

Commit

Permalink
Add severity to MsgHttpMonitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed May 8, 2024
1 parent 2c17d68 commit 258d922
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ where

import Prelude

import Cardano.BM.Data.Tracer
( HasSeverityAnnotation (..)
)
import Cardano.BM.Tracing
( Severity (..)
)
import Cardano.Wallet.Launch.Cluster.Monitoring.Http.Client
( MsgClient
)
Expand Down Expand Up @@ -45,3 +51,13 @@ instance ToText MsgHttpMonitoring where
"HTTP monitoring client stopped"
MsgHttpMonitoringDone ->
"HTTP monitoring done"

instance HasSeverityAnnotation MsgHttpMonitoring where
getSeverityAnnotation = \case
MsgHttpMonitoringPort _ -> Info
MsgHttpMonitoringQuery _ -> Info
MsgHttpMonitoringServerStarted -> Info
MsgHttpMonitoringServerStopped -> Info
MsgHttpMonitoringClientStarted -> Info
MsgHttpMonitoringClientStopped -> Info
MsgHttpMonitoringDone -> Info

0 comments on commit 258d922

Please sign in to comment.