ejabberd_logger: Append "color clean" only in console template, not file

This amends commit d70ac7f7c
This commit is contained in:
Badlop
2025-10-30 11:24:05 +01:00
parent 3f391be8f0
commit 97aac8a446
+3 -2
View File
@@ -390,10 +390,11 @@ msg() ->
msg, io_lib:nl()].
-else.
console_template() ->
[time, " ", ?CLEAD, ?CDEFAULT, clevel, "[", level, "] ", ?CMID, ?CDEFAULT, ctext | msg()].
[time, " ", ?CLEAD, ?CDEFAULT, clevel, "[", level, "] ", ?CMID, ?CDEFAULT,
ctext | msg()] ++ [?CCLEAN].
msg() ->
[{logger_formatter, [[logger_formatter, title], ":", io_lib:nl()], []},
msg, ?CCLEAN, io_lib:nl()].
msg, io_lib:nl()].
-endif.
file_template() ->