Permalink
Browse files

Only colorize the action when logging results.

  • Loading branch information...
chriseppstein committed Oct 31, 2010
1 parent c39808c commit 6486693b80a2c5d42cceade9a210dbeb610eadbf
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/compass/logger.rb
View
@@ -16,7 +16,8 @@ class Logger
:exists => :green,
:directory => :green,
:identical => :green,
- :convert => :green
+ :convert => :green,
+ :unchanged => :yellow
}
@@ -32,8 +33,9 @@ def initialize(*actions)
def record(action, *arguments)
msg = ""
msg << color(ACTION_COLORS[action]) if Compass.configuration.color_output
- msg << "#{action_padding(action)}#{action} #{arguments.join(' ')}"
+ msg << "#{action_padding(action)}#{action}"
msg << color(:clear) if Compass.configuration.color_output
+ msg << " #{arguments.join(' ')}"
log msg
end

0 comments on commit 6486693

Please sign in to comment.