From: elijah Date: Thu, 13 Mar 2014 08:04:54 +0000 (-0700) Subject: make sure --no-color is respected by remote logging as well as local logging. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=2c2125b372bcfc69764f8f2a2ec6a1410f2e0669;p=leap%2Fleap_cli.git make sure --no-color is respected by remote logging as well as local logging. --- diff --git a/lib/leap_cli/logger.rb b/lib/leap_cli/logger.rb index 91fa22d..954ffe2 100644 --- a/lib/leap_cli/logger.rb +++ b/lib/leap_cli/logger.rb @@ -198,7 +198,7 @@ module LeapCli if color == :hide return nil - elsif mode == :log || (color == :none && style.nil?) + elsif mode == :log || (color == :none && style.nil?) || !LeapCli.log_in_color return [message, line_prefix, options] else term_color = COLORS[color]