mod_message_log: Replace outdated function calls

This commit is contained in:
Holger Weiss 2018-09-10 12:07:03 +02:00
parent 4ebf99a1d1
commit 954fb94017
1 changed files with 1 additions and 2 deletions

View File

@ -221,8 +221,7 @@ write_log(IoDevice, Direction, From, To, Type) ->
Date = format_date(calendar:local_time()),
Record = io_lib:format("~s [~s, ~s] ~s -> ~s~n",
[Date, Direction, Type,
jlib:jid_to_string(From),
jlib:jid_to_string(To)]),
jid:encode(From), jid:encode(To)]),
ok = file:write(IoDevice, [Record]).
-spec format_date(calendar:datetime()) -> io_lib:chars().