diff options
author | joe <joe@jerkface.net> | 2014-03-05 23:33:32 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-03-05 23:33:32 -0500 |
commit | 364db76d6c2ca9bc2504b0ba0752b8f6e31481be (patch) | |
tree | 9a259c85274e664591bec031d3142e85d72a5bf0 /Presence/XMPPServer.hs | |
parent | 64fb3004d6500e8ed3826ccf818a64895f61fdfe (diff) |
more stdout flushing, removed noisy ping idle log message
Diffstat (limited to 'Presence/XMPPServer.hs')
-rw-r--r-- | Presence/XMPPServer.hs | 5 |
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 | ||
26 | import Debug.Trace | 26 | import Debug.Trace |
27 | import System.IO (hFlush,stdout) | ||
27 | import Control.Monad.Trans.Resource (runResourceT) | 28 | import Control.Monad.Trans.Resource (runResourceT) |
28 | import Control.Monad.Trans (lift) | 29 | import Control.Monad.Trans (lift) |
29 | import Control.Monad.IO.Class (MonadIO, liftIO) | 30 | import Control.Monad.IO.Class (MonadIO, liftIO) |
@@ -235,10 +236,10 @@ peerKeyToResolvedName k@(PeerKey { callBackAddress=addr }) = do | |||
235 | 236 | ||
236 | 237 | ||
237 | wlog :: String -> IO () | 238 | wlog :: String -> IO () |
238 | wlog s = putStrLn s | 239 | wlog s = putStrLn s >> hFlush stdout |
239 | 240 | ||
240 | wlogb :: ByteString -> IO () | 241 | wlogb :: ByteString -> IO () |
241 | wlogb s = Strict8.putStrLn s | 242 | wlogb s = Strict8.putStrLn s >> hFlush stdout |
242 | 243 | ||
243 | xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event | 244 | xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event |
244 | , Sink (Flush XML.Event) IO () ) | 245 | , Sink (Flush XML.Event) IO () ) |