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()),
|
Date = format_date(calendar:local_time()),
|
||||||
Record = io_lib:format("~s [~s, ~s] ~s -> ~s~n",
|
Record = io_lib:format("~s [~s, ~s] ~s -> ~s~n",
|
||||||
[Date, Direction, Type,
|
[Date, Direction, Type,
|
||||||
jlib:jid_to_string(From),
|
jid:encode(From), jid:encode(To)]),
|
||||||
jlib:jid_to_string(To)]),
|
|
||||||
ok = file:write(IoDevice, [Record]).
|
ok = file:write(IoDevice, [Record]).
|
||||||
|
|
||||||
-spec format_date(calendar:datetime()) -> io_lib:chars().
|
-spec format_date(calendar:datetime()) -> io_lib:chars().
|
||||||
|
|
Loading…
Reference in New Issue