Skip to content

Commit

Permalink
minor improvements: replace print with Log (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
4eUeP committed Nov 29, 2023
1 parent 859ead3 commit 3a7ea13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hstream-kafka/HStream/Kafka/Network.hs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ startTCPServer ServerOptions{..} server = do
-- @conn@) before proper cleanup of @conn@ is your case
forkFinally (server (conn, peer)) $ \e -> do
case e of
Left err -> print err >> N.gracefulClose conn 5000
Left err -> do Log.fatal (Log.buildString' err)
N.gracefulClose conn 5000
Right _ -> pure ()

-------------------------------------------------------------------------------
Expand Down

0 comments on commit 3a7ea13

Please sign in to comment.