summaryrefslogtreecommitdiff
path: root/lib/leap_cli/util/remote_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/util/remote_command.rb')
-rw-r--r--lib/leap_cli/util/remote_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/util/remote_command.rb b/lib/leap_cli/util/remote_command.rb
index 118a65e..aee4eff 100644
--- a/lib/leap_cli/util/remote_command.rb
+++ b/lib/leap_cli/util/remote_command.rb
@@ -12,7 +12,7 @@ module LeapCli; module Util; module RemoteCommand
node_list = parse_node_list(nodes)
cap = new_capistrano
- cap.logger.level = LeapCli.log_level
+ cap.logger = LeapCli::Logger.new(:level => LeapCli.log_level)
user = options[:user] || 'root'
cap.set :user, user
cap.set :ssh_options, ssh_options # ssh options common to all nodes