lib/leap_cli/logger.rb in leap_cli-1.2.5 vs lib/leap_cli/logger.rb in leap_cli-1.5.0
- old
+ new
@@ -196,10 +196,10 @@
end
end
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]
term_style = STYLES[style]
if line_prefix.nil?