From 954fb94017a028fb0a0fbc20ea8d7aead02a7d23 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 10 Sep 2018 12:07:03 +0200 Subject: [PATCH] mod_message_log: Replace outdated function calls --- mod_message_log/src/mod_message_log.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod_message_log/src/mod_message_log.erl b/mod_message_log/src/mod_message_log.erl index 342d034..e8be6a2 100644 --- a/mod_message_log/src/mod_message_log.erl +++ b/mod_message_log/src/mod_message_log.erl @@ -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().