Fixed updating level after plugins reload.
authorCMDR furrycat <elite@furrycat.net>
Wed, 11 Oct 2017 10:48:04 +0000 (11:48 +0100)
committerCMDR furrycat <elite@furrycat.net>
Wed, 11 Oct 2017 10:48:04 +0000 (11:48 +0100)
app.py

diff --git a/app.py b/app.py
index 3475352..73acb57 100644 (file)
--- a/app.py
+++ b/app.py
@@ -258,7 +258,7 @@ async def builtin_commands(message, command, raw):
     if len(args) > 1:
       if args[1] == 'reload':
         plugins.refresh()
-        plugins.log_level(log.getLevel())
+        plugins.log_level(log.getEffectiveLevel())
         return True
       return False
     all_plugins = list(plugins.plugins())