Skip to content

Commit

Permalink
feat(sut): Remove spoiler in dumblog-demo
Browse files Browse the repository at this point in the history
The log output when the bug triggers gives a spoiler. Let's show it in the
debugger instead.
  • Loading branch information
symbiont-daniel-gustafsson committed Mar 29, 2022
1 parent f0193da commit 6ceb73b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sut/dumblog/src/Dumblog/Journal/StateMachine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ runCommand hasBug logger state@(InMemoryDumblog appLog ix mPeerPort) input =
ClientRequest req sn -> case req of
Read i
| hasBug && ix == 3 -> do
logger "Weird reset happend"
pure (initState, ClientResponse (Error (LBS8.pack "Dumblog!")) sn)
| i < ix -> pure (state, ClientResponse (OK (index appLog i)) sn)
| otherwise -> do
Expand Down

0 comments on commit 6ceb73b

Please sign in to comment.