DEV: fake stdout must respond to close
If it does not respond to close Logger will refuse to use it
This commit is contained in:
parent
de5f2d3308
commit
80e832662b
|
@ -80,6 +80,10 @@ class StdOutDemux
|
||||||
(@data[Thread.current] ||= +"") << data
|
(@data[Thread.current] ||= +"") << data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def close
|
||||||
|
finish_chunk
|
||||||
|
end
|
||||||
|
|
||||||
def finish_chunk
|
def finish_chunk
|
||||||
data = @data[Thread.current]
|
data = @data[Thread.current]
|
||||||
if data
|
if data
|
||||||
|
|
Loading…
Reference in New Issue