Skip to content

Commit

Permalink
Add line numbers to debug mix logging (4276)
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Sep 6, 2024
1 parent ef02d10 commit 4f844a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ejabberd_logger.erl
Original file line number Diff line number Diff line change
Expand Up @@ -379,17 +379,17 @@ console_template() ->
{logger_formatter, _} ->
msg
end,
[date, " ", time, " [", level, "] ", MessageFormat, "\n"];
[date, " ", time, " +382+[", level, "] ", MessageFormat, "\n"];
false ->
[time, " [", level, "] " | msg()]
[time, " +384+[", level, "] " | msg()]
end.
-else.
console_template() ->
[time, " [", level, "] " | msg()].
[time, " +388+[", level, "] " | msg()].
-endif.

file_template() ->
[time, " [", level, "] ", pid,
[time, " +392+[", level, "] ", pid,
{mfa, ["@", mfa, {line, [":", line], []}], []}, " " | msg()].

msg() ->
Expand Down

0 comments on commit 4f844a7

Please sign in to comment.