From: Holger Weiss Date: Wed, 31 Oct 2018 01:42:54 +0000 (+0100) Subject: ejabberd_logger: Disable debug logging properly X-Git-Tag: 18.12~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd93c0b457e6424805d7095e10b8e5f935ad51cf;p=ejabberd 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. --- diff --git a/src/ejabberd_logger.erl b/src/ejabberd_logger.erl index aac0baf59..c7845be2f 100644 --- a/src/ejabberd_logger.erl +++ b/src/ejabberd_logger.erl @@ -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, _}) ->