aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-25 13:58:05 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-25 13:58:05 +0300
commit2eaad2186354d24d2097f95df6353def7e68220c (patch)
treedca132d3eb5ceaa57fa29189160ca4b4f488a19e /src
parentTag p1_acme and use that in deps (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_config.erl8
1 files changed, 4 insertions, 4 deletions
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.