From 60f8f753a11c4543931281c56cbd568b2b00f278 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 3 Nov 2014 10:36:34 -0800 Subject: only print out net-ssh info if --debug is active --- lib/leap_cli/util/remote_command.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/leap_cli/util/remote_command.rb b/lib/leap_cli/util/remote_command.rb index 6353e36..2dd22ca 100644 --- a/lib/leap_cli/util/remote_command.rb +++ b/lib/leap_cli/util/remote_command.rb @@ -84,11 +84,15 @@ module LeapCli; module Util; module RemoteCommand end def net_ssh_log_level - case LeapCli.log_level - when 1 then 3 - when 2 then 2 - when 3 then 1 - else 0 + if DEBUG + case LeapCli.log_level + when 1 then 3 + when 2 then 2 + when 3 then 1 + else 0 + end + else + nil end end -- cgit v1.2.3