From 6486693b80a2c5d42cceade9a210dbeb610eadbf Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 31 Oct 2010 00:32:45 -0700 Subject: [PATCH] Only colorize the action when logging results. --- lib/compass/logger.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/compass/logger.rb b/lib/compass/logger.rb index 5d77295d..e1be0f55 100644 --- a/lib/compass/logger.rb +++ b/lib/compass/logger.rb @@ -16,7 +16,8 @@ module Compass :exists => :green, :directory => :green, :identical => :green, - :convert => :green + :convert => :green, + :unchanged => :yellow } @@ -32,8 +33,9 @@ module Compass 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