mod_message_log: Replace outdated function calls
This commit is contained in:
parent
4ebf99a1d1
commit
954fb94017
|
@ -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().
|
||||
|
|
Loading…
Reference in New Issue