From 11995d6fd585e588c36cc4634a3c9b2a9f63c3e9 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Sun, 31 Dec 2017 13:02:15 -0500 Subject: Suppress noise from drawing command invocations --- activestorage/lib/active_storage/previewer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/lib/active_storage') diff --git a/activestorage/lib/active_storage/previewer.rb b/activestorage/lib/active_storage/previewer.rb index 3d485988e9..81cdb6aedc 100644 --- a/activestorage/lib/active_storage/previewer.rb +++ b/activestorage/lib/active_storage/previewer.rb @@ -51,7 +51,7 @@ module ActiveStorage def capture(*argv, to:) to.binmode - IO.popen(argv) { |out| IO.copy_stream(out, to) } + IO.popen(argv, err: File::NULL) { |out| IO.copy_stream(out, to) } to.rewind end -- cgit v1.2.3