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:
Sam Saffron 2020-04-09 14:36:01 +10:00
parent de5f2d3308
commit 80e832662b
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
1 changed files with 4 additions and 0 deletions

View File

@ -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