Skip to content
Browse files

Do not print status or debug messages if rake is quieted.

  • Loading branch information...
1 parent 40c6554 commit c2b358bb3a9f6b39ed8539fc81e102b6eaefe577 @postmodern committed Apr 29, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/rubygems/tasks/printing.rb
View
6 lib/rubygems/tasks/printing.rb
@@ -52,7 +52,9 @@ module Printing
# The message to print.
#
def status(message)
- $stdout.puts "#{STATUS_PREFIX} #{message}"
+ if Rake.verbose
+ $stdout.puts "#{STATUS_PREFIX} #{message}"
+ end
end
#
@@ -62,7 +64,7 @@ def status(message)
# The message to print.
#
def debug(message)
- if Rake.application.options.trace
+ if (Rake.verbose && Rake.application.options.trace)
$stderr.puts "#{DEBUG_PREFIX} #{message}"
end
end

0 comments on commit c2b358b

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