mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01: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
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user