[Pkg-puppet-devel] [facter] 205/352: (#20216) Print timings to stderr instead of stdout

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit 0d8ec3413657f71fa1d5c790eaf0a2d66d133c42
Author: Franz Pletz <fpletz at fnordicwalking.de>
Date:   Sat Jul 13 17:13:28 2013 +0200

    (#20216) Print timings to stderr instead of stdout
    
    Facter prints both timings and facts to stdout if timing is enabled.
    To facilitate separating both outputs the timings should be printed to
    stderr instead.
---
 lib/facter/core/logging.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/facter/core/logging.rb b/lib/facter/core/logging.rb
index 9f213a7..7c46d96 100644
--- a/lib/facter/core/logging.rb
+++ b/lib/facter/core/logging.rb
@@ -86,7 +86,7 @@ module Facter::Core::Logging
   #
   # @api private
   def show_time(string)
-    puts "#{GREEN}#{string}#{RESET}" if string and self.timing?
+    $stderr.puts "#{GREEN}#{string}#{RESET}" if string and self.timing?
   end
 
   # Enable or disable logging of debug messages

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list