Merge pull request #72 from tsloughter/error_color

fix error log message being colored green instead of red
This commit is contained in:
Jordan Wilberding 2014-09-27 12:32:40 -07:00
commit a299d45899

View file

@ -149,7 +149,7 @@ error(LogState, String) ->
%% and argements @see io:format/2
-spec error(t(), string(), [any()]) -> ok.
error(LogState, FormatString, Args) ->
log(LogState, ?EC_ERROR, colorize(LogState, ?GREEN, false, FormatString), Args).
log(LogState, ?EC_ERROR, colorize(LogState, ?RED, false, FormatString), Args).
%% @doc log at the warn level given the current log state with a string or
%% format string that returns a function