summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Protocol.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Propellor/Protocol.hs b/src/Propellor/Protocol.hs
index 2c568817..940f3e67 100644
--- a/src/Propellor/Protocol.hs
+++ b/src/Propellor/Protocol.hs
@@ -41,7 +41,7 @@ fromMarked marker s
sendMarked :: Handle -> Marker -> String -> IO ()
sendMarked h marker s = do
- debug ["sent req", marker]
+ debug ["sent marked", marker]
-- Prefix string with newline because sometimes a
-- incomplete line has been output, and the marker needs to
-- come at the start of a line.
@@ -57,7 +57,9 @@ getMarked h marker = go =<< catchMaybeIO (hGetLine h)
unless (null l) $
hPutStrLn stderr l
getMarked h marker
- Just v -> return (Just v)
+ Just v -> do
+ debug ["received marked", marker]
+ return (Just v)
req :: Stage -> Marker -> (String -> IO ()) -> IO ()
req stage marker a = do