Skip to content
Snippets Groups Projects
Commit 774fd979 authored by Jens Nolte's avatar Jens Nolte
Browse files

Print downstream for ipc client connections when running with -v

parent 006ceaa2
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ class (ToJSON (Up s), FromJSON (Up s), ToJSON (Down s), FromJSON (Down s)) => Is
sock <- liftIO $ connectIpcSocket options
runEffect (encode (StartStream $ toStreamType s) >-> toSocket sock)
let up = forever (await >>= encode) >-> verbosePrintP >-> toSocket sock
let down = decodeStreamSafe options (fromSocket sock 4096)
let down = decodeStreamSafe options (fromSocket sock 4096 >-> verbosePrintP)
return (up, down)
where
verbosePrintP :: Pipe ByteString ByteString IO ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment