25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

ejabberd_logger: Disable debug logging properly

Don't forget to disable xmpp's debug logging when reducing the log level
from 5 to a lower value.
This commit is contained in:
Holger Weiss 2018-10-31 02:42:54 +01:00
parent a73aac691e
commit dd93c0b457

View File

@ -220,7 +220,7 @@ set(LogLevel) when is_integer(LogLevel) ->
end,
case LogLevel of
5 -> xmpp:set_config([{debug, true}]);
_ -> ok
_ -> xmpp:set_config([{debug, false}])
end,
{module, lager};
set({_LogLevel, _}) ->