From cd54f70943d7da74dce29cadedcd8c012f7cfd4e Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 7 Apr 2018 21:47:33 +0200 Subject: [PATCH] mod_s2s_log: Add mod_options/1 callback --- mod_s2s_log/src/mod_s2s_log.erl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mod_s2s_log/src/mod_s2s_log.erl b/mod_s2s_log/src/mod_s2s_log.erl index e7fc21d..23bab31 100644 --- a/mod_s2s_log/src/mod_s2s_log.erl +++ b/mod_s2s_log/src/mod_s2s_log.erl @@ -32,7 +32,8 @@ init/1, stop/1, depends/2, - mod_opt_type/1]). + mod_opt_type/1, + mod_options/1]). %% Hooks: -export([reopen_log/0, s2s_out_auth/2, @@ -114,9 +115,10 @@ depends(_, _) -> []. mod_opt_type(filename) -> - fun iolist_to_binary/1; -mod_opt_type(_) -> - [filename]. + fun iolist_to_binary/1. + +mod_options(_Host) -> + [{filename, ?DEFAULT_FILENAME}]. %% --- %% Internal functions