From 435d0bcc3dad503e955575e8394dee2779e85d26 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 4 Apr 2018 02:04:55 +0200 Subject: [PATCH] mod_message_log: Update gen_mod:get_opt() call --- 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 3ba6b42..e592e98 100644 --- a/mod_message_log/src/mod_message_log.erl +++ b/mod_message_log/src/mod_message_log.erl @@ -113,8 +113,7 @@ depends(_Host, _Opts) -> init(Opts) -> process_flag(trap_exit, true), ejabberd_hooks:add(reopen_log_hook, ?MODULE, reopen_log, 42), - Filename = gen_mod:get_opt(filename, Opts, fun iolist_to_binary/1, - ?DEFAULT_FILENAME), + Filename = gen_mod:get_opt(filename, Opts), {ok, IoDevice} = file:open(Filename, ?FILE_MODES), {ok, #state{filename = Filename, iodevice = IoDevice}}.