From 8a91598b044343b0cd3a4ea14f0df0adacae0105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Thu, 27 Apr 2023 13:28:56 +0200 Subject: [PATCH] Fix path conversion in mod_s2s_log --- mod_s2s_log/src/mod_s2s_log.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_s2s_log/src/mod_s2s_log.erl b/mod_s2s_log/src/mod_s2s_log.erl index aa6217d..00a3caf 100644 --- a/mod_s2s_log/src/mod_s2s_log.erl +++ b/mod_s2s_log/src/mod_s2s_log.erl @@ -58,7 +58,7 @@ start(Host, Opts) -> "s2s.log"); FN -> FN end, - Filename = list_to_binary(FilenameStr), + Filename = iolist_to_binary(FilenameStr), register(?PROCNAME, spawn(?MODULE, init, [#config{filename=Filename}])), ejabberd_hooks:add(reopen_log_hook, ?MODULE, reopen_log, 55),