Skip to content

Commit

Permalink
Remove spurious newline from log messages (#531)
Browse files Browse the repository at this point in the history
I did not realize that `defaultLogStr` already adds a newline at the end
--- no need to use `hPutStrLn`
  • Loading branch information
geo2a authored Feb 29, 2024
1 parent 618360c commit f475100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Booster/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ handleOutput ::
IO ()
handleOutput levelToHandle loc src level msg =
let bytes = Log.fromLogStr $ Log.defaultLogStr loc src level msg
in BS.hPutStrLn (levelToHandle level) bytes
in BS.hPutStr (levelToHandle level) bytes

-- | Run a logging computation, redirecting various levels to the handles specified by the first arguments
runHandleLoggingT :: (Log.LogLevel -> IO.Handle) -> Log.LoggingT m a -> m a
Expand Down

0 comments on commit f475100

Please sign in to comment.