Browse files

Revert some logging statements.

Capistrano outputs all logs into a single place which makes it rather difficult
to figure out what has happened on a single host machine, especially when you are
running parallel. By adding host information to the log as possible as it can will
enable tools such as splunk to easily filter out host specific log information, which
is helpful during the later auditing process.
  • Loading branch information...
1 parent 4c5967f commit d24e9266512f4d401ae1b9b5c6f2130c01536885 @exceedhl committed Dec 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/configuration/actions/invocation.rb
@@ -12,7 +12,7 @@ def self.included(base) #:nodoc:
base.default_io_proc = do |ch, stream, out|
level = stream == :err ? :important : :info
- ch[:options][:logger].send(level, out, ch[:server])
+ ch[:options][:logger].send(level, out, "#{stream} :: #{ch[:server]}")
@@ -231,7 +231,7 @@ def sudo_behavior_callback(fallback) #:nodoc:
if out =~ /^Sorry, try again/
if prompt_host.nil? || prompt_host == ch[:server]
prompt_host = ch[:server]
- logger.important out, ch[:server]
+ logger.important out, "#{stream} :: #{ch[:server]}"
reset! :password

0 comments on commit d24e926

Please sign in to comment.