From 80e832662b719425872e7ac3736fb9fc56d85aca Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 9 Apr 2020 14:36:01 +1000 Subject: [PATCH] DEV: fake stdout must respond to close If it does not respond to close Logger will refuse to use it --- lib/tasks/db.rake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 6b1a8b657b5..81087473a0e 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -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