]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
make sure --no-color is respected by remote logging as well as local logging.
authorelijah <elijah@riseup.net>
Thu, 13 Mar 2014 08:04:54 +0000 (01:04 -0700)
committerelijah <elijah@riseup.net>
Thu, 13 Mar 2014 08:04:54 +0000 (01:04 -0700)
lib/leap_cli/logger.rb

index 91fa22dfa99f6dca180c6023935e179957c991f5..954ffe29df5bfcdaf78a2442a7c099df78050889 100644 (file)
@@ -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]