protocol debug
This commit is contained in:
parent
50f68604e1
commit
5d06f1ebc3
|
@ -189,16 +189,18 @@ chain s = case readish s of
|
||||||
-- 1 minute.
|
-- 1 minute.
|
||||||
provisionContainer :: ContainerId -> Property
|
provisionContainer :: ContainerId -> Property
|
||||||
provisionContainer cid = containerDesc cid $ Property "provision" $
|
provisionContainer cid = containerDesc cid $ Property "provision" $
|
||||||
simpleShClientRetry 60 (namedPipe cid) "./propellor" ["--continue", show params] (go Nothing)
|
simpleShClientRetry 60 (namedPipe cid) "./propellor" params (go Nothing)
|
||||||
where
|
where
|
||||||
params = Chain $ fromContainerId cid
|
params = ["--continue", show $ Chain $ fromContainerId cid]
|
||||||
|
|
||||||
go lastline (v:rest) = case v of
|
go lastline (v:rest) = case v of
|
||||||
StdoutLine s -> do
|
StdoutLine s -> do
|
||||||
|
debug ["stdout: ", s]
|
||||||
maybe noop putStrLn lastline
|
maybe noop putStrLn lastline
|
||||||
hFlush stdout
|
hFlush stdout
|
||||||
go (Just s) rest
|
go (Just s) rest
|
||||||
StderrLine s -> do
|
StderrLine s -> do
|
||||||
|
debug ["stderr: ", s]
|
||||||
maybe noop putStrLn lastline
|
maybe noop putStrLn lastline
|
||||||
hFlush stdout
|
hFlush stdout
|
||||||
hPutStrLn stderr s
|
hPutStrLn stderr s
|
||||||
|
|
Loading…
Reference in New Issue