mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Revert "Verbose command execution log should be optional. Set :verbose_command_log to true when you need it. Refs #178."
This reverts commit e9ba06f354
.
This commit is contained in:
parent
830b353c1b
commit
ef5f83f63b
3 changed files with 3 additions and 7 deletions
|
@ -219,7 +219,7 @@ module Capistrano
|
|||
command_line = [environment, shell, cmd].compact.join(" ")
|
||||
ch[:command] = command_line
|
||||
|
||||
logger.trace command_line, ch[:server] if logger && options[:verbose_command_log]
|
||||
logger.trace command_line, ch[:server] if logger
|
||||
|
||||
ch.exec(command_line)
|
||||
ch.send_data(options[:data]) if options[:data]
|
||||
|
|
|
@ -175,11 +175,7 @@ module Capistrano
|
|||
|
||||
execute_on_servers(options) do |servers|
|
||||
targets = servers.map { |s| sessions[s] }
|
||||
Command.process(tree, targets, options.merge(
|
||||
:logger => logger,
|
||||
:verbose_command_log => fetch(:verbose_command_log, false)
|
||||
)
|
||||
)
|
||||
Command.process(tree, targets, options.merge(:logger => logger))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class ConfigurationTest < Test::Unit::TestCase
|
|||
process_args = Proc.new do |tree, session, opts|
|
||||
tree.fallback.command == "echo 'hello world'" &&
|
||||
session == [:session] &&
|
||||
opts == { :logger => @config.logger, :verbose_command_log => false }
|
||||
opts == { :logger => @config.logger }
|
||||
end
|
||||
|
||||
Capistrano::Command.expects(:process).with(&process_args)
|
||||
|
|
Loading…
Reference in a new issue