Skip to content

Commit 743c431

Browse files
committed
Use line buffering for mirror client
Handy when monitoring log files to get more incremental output.
1 parent 21c2464 commit 743c431

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MirrorClient.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ data MirrorState = MirrorState {
7979

8080
main :: IO ()
8181
main = toplevelHandler $ do
82+
hSetBuffering stdout LineBuffering
83+
8284
args <- getArgs
8385
(verbosity, opts) <- validateOpts args
8486

0 commit comments

Comments
 (0)