summaryrefslogtreecommitdiff
path: root/Presence/XMPPServer.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-03-05 23:33:32 -0500
committerjoe <joe@jerkface.net>2014-03-05 23:33:32 -0500
commit364db76d6c2ca9bc2504b0ba0752b8f6e31481be (patch)
tree9a259c85274e664591bec031d3142e85d72a5bf0 /Presence/XMPPServer.hs
parent64fb3004d6500e8ed3826ccf818a64895f61fdfe (diff)
more stdout flushing, removed noisy ping idle log message
Diffstat (limited to 'Presence/XMPPServer.hs')
-rw-r--r--Presence/XMPPServer.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs
index b9719fa4..dd693b8c 100644
--- a/Presence/XMPPServer.hs
+++ b/Presence/XMPPServer.hs
@@ -24,6 +24,7 @@ module XMPPServer
24 ) where 24 ) where
25 25
26import Debug.Trace 26import Debug.Trace
27import System.IO (hFlush,stdout)
27import Control.Monad.Trans.Resource (runResourceT) 28import Control.Monad.Trans.Resource (runResourceT)
28import Control.Monad.Trans (lift) 29import Control.Monad.Trans (lift)
29import Control.Monad.IO.Class (MonadIO, liftIO) 30import Control.Monad.IO.Class (MonadIO, liftIO)
@@ -235,10 +236,10 @@ peerKeyToResolvedName k@(PeerKey { callBackAddress=addr }) = do
235 236
236 237
237wlog :: String -> IO () 238wlog :: String -> IO ()
238wlog s = putStrLn s 239wlog s = putStrLn s >> hFlush stdout
239 240
240wlogb :: ByteString -> IO () 241wlogb :: ByteString -> IO ()
241wlogb s = Strict8.putStrLn s 242wlogb s = Strict8.putStrLn s >> hFlush stdout
242 243
243xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event 244xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event
244 , Sink (Flush XML.Event) IO () ) 245 , Sink (Flush XML.Event) IO () )