diff options
-rw-r--r-- | lib/leap_cli/util/remote_command.rb | 14 |
1 files 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 |