aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-03-13 01:04:54 -0700
committerelijah <elijah@riseup.net>2014-03-13 01:04:54 -0700
commit2c2125b372bcfc69764f8f2a2ec6a1410f2e0669 (patch)
tree957892117dbe2b73f52470191432dd59da029d95 /lib
parent82a1295f3a41ace4be6398945dd53e9c300a6d11 (diff)
downloadleap_cli-2c2125b372bcfc69764f8f2a2ec6a1410f2e0669.tar.gz
leap_cli-2c2125b372bcfc69764f8f2a2ec6a1410f2e0669.tar.bz2
make sure --no-color is respected by remote logging as well as local logging.
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/logger.rb2
1 files changed, 1 insertions, 1 deletions
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]