Skip to content

Commit

Permalink
Disable some bigger traces
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Jan 23, 2025
1 parent 574441d commit 701adff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions hydra-node/src/Hydra/API/WSServer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ wsApp party tracer nextSeq callback headStatusP headIdP snapshotUtxoP responseCh
prepareServerOutput outConfig response

sendTextData con sentResponse
traceWith tracer (APIOutputSent $ toJSON response)
-- TODO: disabled for doom traceWith tracer (APIOutputSent $ toJSON response)

receiveInputs con = forever $ do
msg <- receiveData con
case Aeson.eitherDecode msg of
Right input -> do
traceWith tracer (APIInputReceived $ toJSON input)
-- TODO: disabled for doom traceWith tracer (APIInputReceived $ toJSON input)
callback input
Left e -> do
-- XXX(AB): toStrict might be problematic as it implies consuming the full
Expand All @@ -151,7 +151,7 @@ wsApp party tracer nextSeq callback headStatusP headIdP snapshotUtxoP responseCh
sendTextData con $ Aeson.encode timedOutput
traceWith tracer (APIInvalidInput e clientInput)

-- forwardHistory con = do
-- hist <- STM.atomically (readTVar history)
-- let encodeAndReverse xs serverOutput = Aeson.encode serverOutput : xs
-- sendTextDatas con $ foldl' encodeAndReverse [] hist
-- forwardHistory con = do
-- hist <- STM.atomically (readTVar history)
-- let encodeAndReverse xs serverOutput = Aeson.encode serverOutput : xs
-- sendTextDatas con $ foldl' encodeAndReverse [] hist
2 changes: 1 addition & 1 deletion hydra-node/src/Hydra/Node.hs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ stepHydraNode node = do
i@Queued{queuedId, queuedItem} <- dequeue
traceWith tracer $ BeginInput{by = party, inputId = queuedId, input = queuedItem}
outcome <- atomically $ processNextInput node queuedItem
traceWith tracer (LogicOutcome party outcome)
-- TODO: disabled for doom traceWith tracer (LogicOutcome party outcome)
case outcome of
Continue{stateChanges, effects} -> do
processStateChanges node stateChanges
Expand Down

0 comments on commit 701adff

Please sign in to comment.