fix error log message being colored green instead of red

This commit is contained in:
Tristan Sloughter 2014-09-27 14:06:49 -05:00
parent 03f76c6ef2
commit 4fb4199da3

View file

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