From: Evgeny Khramtsov Date: Wed, 25 Sep 2019 10:58:05 +0000 (+0300) Subject: Don't log warning when an option is consulted for uknown vhost X-Git-Tag: 19.09~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eaad2186354d24d2097f95df6353def7e68220c;p=ejabberd Don't log warning when an option is consulted for uknown vhost Such warnings may be unappropriate in some situation, e.g. when a virtual host is disabled in runtime but some packets for this host are still in transit. Fixes #3037 --- diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index c1d23530a..9d0290f41 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -158,10 +158,10 @@ get_option({O, Host} = Opt) -> catch ?EX_RULE(error, badarg, St) when Host /= global -> StackTrace = ?EX_STACK(St), Val = get_option({O, global}), - ?WARNING_MSG("Option '~ts' is not defined for virtual host '~ts'. " - "This is a bug, please report it with the following " - "stacktrace included:~n** ~ts", - [O, Host, misc:format_exception(2, error, badarg, StackTrace)]), + ?DEBUG("Option '~ts' is not defined for virtual host '~ts'. " + "This is a bug, please report it with the following " + "stacktrace included:~n** ~ts", + [O, Host, misc:format_exception(2, error, badarg, StackTrace)]), Val end.