Disable buffering to fix Docker logs

This commit is contained in:
Manuel 2021-05-13 06:25:21 +02:00
parent c186ecf521
commit 6d6f6f32aa
Signed by: Manuel
GPG key ID: 4085037435E1F07A

View file

@ -1,5 +1,6 @@
module Main where module Main where
import System.IO (BufferMode (NoBuffering), hSetBuffering, stdout)
import Options.Applicative import Options.Applicative
import Myriad import Myriad
@ -31,5 +32,6 @@ parseArgs = execParser $ info (helper <*> args) (fullDesc <> progDesc "Run the M
main :: IO () main :: IO ()
main = do main = do
hSetBuffering stdout NoBuffering
Args { configPath, languagesDir } <- parseArgs Args { configPath, languagesDir } <- parseArgs
runMyriadServer configPath languagesDir runMyriadServer configPath languagesDir