mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
TODO HACK DONT COMMIT: Log to stderr
This commit is contained in:
parent
acdd9b82f5
commit
c49e26d556
@ -39,7 +39,7 @@ withLogFileHandle act = do
|
||||
runApp :: RIO App a -> IO a
|
||||
runApp inner = do
|
||||
withLogFileHandle $ \logFile -> do
|
||||
logOptions <- logOptionsHandle logFile True
|
||||
logOptions <- logOptionsHandle stderr True
|
||||
<&> setLogUseTime True
|
||||
<&> setLogUseLoc False
|
||||
|
||||
@ -78,7 +78,7 @@ instance HasNetworkConfig PierApp where
|
||||
runPierApp :: PierConfig -> NetworkConfig -> RIO PierApp a -> IO a
|
||||
runPierApp pierConfig networkConfig inner = do
|
||||
withLogFileHandle $ \logFile -> do
|
||||
logOptions <- logOptionsHandle logFile True
|
||||
logOptions <- logOptionsHandle stderr True
|
||||
<&> setLogUseTime True
|
||||
<&> setLogUseLoc False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user