add more logging

This commit is contained in:
nek0 2024-11-04 07:02:52 +01:00
parent acc0e12f1d
commit bcda028720
2 changed files with 2 additions and 2 deletions

View file

@ -131,7 +131,7 @@ processRequests = do
forever $ sendMessageQueue curLevel sockContainer clientQueue
logPrintIO curLevel Verbose "enabled sender thread"
pure t
print clientSock
logPrintIO curLevel Verbose $ show clientSock
liftIO $ STM.atomically $ do
slist <- STM.takeTMVar socketList
STM.putTMVar

View file

@ -62,7 +62,7 @@ receiveMessage curLevel socketList queueList sockContainer queue = do
then [] :: [B8.ByteString]
else map B8.tail $ init $ B8.split '>' $ B8.fromStrict rawMsg
logPrintIO curLevel Verbose $ "received messages: " <> show msgs
print msgs
logPrintIO curLevel Verbose $ show msgs
mapM_
(\msg -> do
let mJsonMsg = A.decode' msg