Skip to content

Commit

Permalink
Log every outcome as part of the every protocol transition
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Nov 29, 2022
1 parent 57386de commit c304b32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hydra-node/src/Hydra/Node.hs
Expand Up @@ -129,7 +129,9 @@ stepHydraNode ::
stepHydraNode tracer node = do
e <- nextEvent eq
traceWith tracer $ BeginEvent party e
atomically (processNextEvent node e) >>= \case
outcome <- atomically (processNextEvent node e)
traceWith tracer (LogicOutcome party outcome)
case outcome of
-- TODO(SN): Handling of 'Left' is untested, i.e. the fact that it only
-- does trace and not throw!
Error err -> traceWith tracer (ErrorHandlingEvent party e err)
Expand Down

0 comments on commit c304b32

Please sign in to comment.