Merge pull request #72 from tsloughter/error_color
fix error log message being colored green instead of red
This commit is contained in:
commit
a299d45899
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue