mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12: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 :: RIO App a -> IO a
|
||||||
runApp inner = do
|
runApp inner = do
|
||||||
withLogFileHandle $ \logFile -> do
|
withLogFileHandle $ \logFile -> do
|
||||||
logOptions <- logOptionsHandle logFile True
|
logOptions <- logOptionsHandle stderr True
|
||||||
<&> setLogUseTime True
|
<&> setLogUseTime True
|
||||||
<&> setLogUseLoc False
|
<&> setLogUseLoc False
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ instance HasNetworkConfig PierApp where
|
|||||||
runPierApp :: PierConfig -> NetworkConfig -> RIO PierApp a -> IO a
|
runPierApp :: PierConfig -> NetworkConfig -> RIO PierApp a -> IO a
|
||||||
runPierApp pierConfig networkConfig inner = do
|
runPierApp pierConfig networkConfig inner = do
|
||||||
withLogFileHandle $ \logFile -> do
|
withLogFileHandle $ \logFile -> do
|
||||||
logOptions <- logOptionsHandle logFile True
|
logOptions <- logOptionsHandle stderr True
|
||||||
<&> setLogUseTime True
|
<&> setLogUseTime True
|
||||||
<&> setLogUseLoc False
|
<&> setLogUseLoc False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user