mirror of https://github.com/voidlizard/hbs2
pong output
This commit is contained in:
parent
d5d7c6fbb7
commit
277e886a4b
|
@ -88,7 +88,7 @@ main = do
|
||||||
sodiumInit
|
sodiumInit
|
||||||
|
|
||||||
setLogging @DEBUG (set loggerTr ("[debug] " <>))
|
setLogging @DEBUG (set loggerTr ("[debug] " <>))
|
||||||
setLogging @INFO (set loggerTr ("[info] " <>))
|
setLogging @INFO defLog
|
||||||
setLogging @ERROR (set loggerTr ("[error] " <>))
|
setLogging @ERROR (set loggerTr ("[error] " <>))
|
||||||
setLogging @WARN (set loggerTr ("[warn] " <>))
|
setLogging @WARN (set loggerTr ("[warn] " <>))
|
||||||
setLogging @NOTICE (set loggerTr ("[notice] " <>))
|
setLogging @NOTICE (set loggerTr ("[notice] " <>))
|
||||||
|
@ -472,7 +472,7 @@ withRPC saddr cmd = do
|
||||||
RPCPing{} -> do
|
RPCPing{} -> do
|
||||||
void $ liftIO $ void $ race (pause @'Seconds 5 >> exitFailure) do
|
void $ liftIO $ void $ race (pause @'Seconds 5 >> exitFailure) do
|
||||||
pa <- liftIO $ atomically $ readTQueue pingQ
|
pa <- liftIO $ atomically $ readTQueue pingQ
|
||||||
notice $ "pong from" <+> pretty pa
|
Log.info $ "pong from" <+> pretty pa
|
||||||
exitSuccess
|
exitSuccess
|
||||||
|
|
||||||
_ -> pure ()
|
_ -> pure ()
|
||||||
|
|
Loading…
Reference in New Issue