]> granicus.if.org Git - ejabberd/commitdiff
ejabberd_logger: Disable debug logging properly
authorHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 31 Oct 2018 01:42:54 +0000 (02:42 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 31 Oct 2018 01:42:54 +0000 (02:42 +0100)
Don't forget to disable xmpp's debug logging when reducing the log level
from 5 to a lower value.

src/ejabberd_logger.erl

index aac0baf59b42d8ae922da997c207f5b32f370418..c7845be2f4e32de7eef03a55c6100be869825d25 100644 (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, _}) ->