mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
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
This commit is contained in:
parent
9b2a44e750
commit
2eaad21863
1 changed files with 4 additions and 4 deletions
|
@ -158,7 +158,7 @@ get_option({O, Host} = Opt) ->
|
||||||
catch ?EX_RULE(error, badarg, St) when Host /= global ->
|
catch ?EX_RULE(error, badarg, St) when Host /= global ->
|
||||||
StackTrace = ?EX_STACK(St),
|
StackTrace = ?EX_STACK(St),
|
||||||
Val = get_option({O, global}),
|
Val = get_option({O, global}),
|
||||||
?WARNING_MSG("Option '~ts' is not defined for virtual host '~ts'. "
|
?DEBUG("Option '~ts' is not defined for virtual host '~ts'. "
|
||||||
"This is a bug, please report it with the following "
|
"This is a bug, please report it with the following "
|
||||||
"stacktrace included:~n** ~ts",
|
"stacktrace included:~n** ~ts",
|
||||||
[O, Host, misc:format_exception(2, error, badarg, StackTrace)]),
|
[O, Host, misc:format_exception(2, error, badarg, StackTrace)]),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue