summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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]