Skip to content
Browse files

Use STDERR as third arg to ProgressBar.new

Prevents progress bar from being included when using shell redirection.
  • Loading branch information...
1 parent 6a7904a commit 0134e5dbe1b6f760b98838532e85c3c715c503cd @bradland committed Feb 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/request_log_analyzer/controller.rb
View
2 lib/request_log_analyzer/controller.rb
@@ -262,7 +262,7 @@ def initialize(source, options = {})
def handle_progress(message, value = nil)
case message
when :started
- @progress_bar = CommandLine::ProgressBar.new(File.basename(value), File.size(value), STDOUT)
+ @progress_bar = CommandLine::ProgressBar.new(File.basename(value), File.size(value), STDERR)
when :finished
@progress_bar.finish
@progress_bar = nil

0 comments on commit 0134e5d

Please sign in to comment.
Something went wrong with that request. Please try again.