Skip to content

Commit

Permalink
consensus trace instances: trace termination reason
Browse files Browse the repository at this point in the history
Co-authored-by: Armando Santos <bolt12@users.noreply.github.com>
Co-authored-by: Karl Knutsson <karknu@users.noreply.github.com>
Co-authored-by: Marcin Szamotulski <coot@users.noreply.github.com>
  • Loading branch information
4 people committed Nov 30, 2021
1 parent 508a6ac commit e19503b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cardano-node/src/Cardano/Tracing/OrphanInstances/Consensus.hs
Expand Up @@ -1013,8 +1013,9 @@ instance (ConvertRawHash blk, LedgerSupportsProtocol blk)
, "exception" .= String (pack $ show exc) ]
TraceFoundIntersection _ _ _ ->
mkObject [ "kind" .= String "ChainSyncClientEvent.TraceFoundIntersection" ]
TraceTermination _ ->
mkObject [ "kind" .= String "ChainSyncClientEvent.TraceTermination" ]
TraceTermination reason ->
mkObject [ "kind" .= String "ChainSyncClientEvent.TraceTermination"
, "reason" .= String (pack $ show reason) ]

instance ConvertRawHash blk
=> ToObject (TraceChainSyncServerEvent blk) where
Expand Down

0 comments on commit e19503b

Please sign in to comment.