]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
minor change to log appearance
authorelijah <elijah@riseup.net>
Mon, 10 Dec 2012 06:27:01 +0000 (22:27 -0800)
committerelijah <elijah@riseup.net>
Mon, 10 Dec 2012 06:27:01 +0000 (22:27 -0800)
lib/leap_cli/log.rb

index 4b0bbe2a8e43b879a98192975478d93157d6ec3a..89cf0bab2047773c1db8fe2d79e9486c4c536481 100644 (file)
@@ -51,11 +51,11 @@ module LeapCli
       options = args.grep(Hash).first || {}
       options[:indent] ||= LeapCli.indent_level
       if message && LeapCli.log_level >= level
-        print "  " * (options[:indent]+1)
+        print "  " * (options[:indent])
         if options[:indent] > 0
-          print '- '
+          print ' - '
         else
-          print '= '
+          print ' = '
         end
         if title
           prefix = case title
@@ -74,6 +74,7 @@ module LeapCli
             when :completed then ['completed', :green, :bold]
             when :ran       then ['ran', :green, :bold]
             when :bail      then ['bailing out', :red, :bold]
+            when :invalid   then ['invalid', :red, :bold]
             else [title.to_s, :cyan, :bold]
           end
           if options[:host]