Skip to content

Commit

Permalink
DEV: fake stdout must respond to close
Browse files Browse the repository at this point in the history
If it does not respond to close Logger will refuse to use it
  • Loading branch information
SamSaffron committed Apr 9, 2020
1 parent de5f2d3 commit 80e8326
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tasks/db.rake
Expand Up @@ -80,6 +80,10 @@ class StdOutDemux
(@data[Thread.current] ||= +"") << data
end

def close
finish_chunk
end

def finish_chunk
data = @data[Thread.current]
if data
Expand Down

0 comments on commit 80e8326

Please sign in to comment.