From ef47fd3914d1ae14476ca18574a37b2bce396d09 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 28 Jul 2012 09:47:30 -0500 Subject: [PATCH] Module: reload the logging config file every __init__() this is to allow for changing a module's logging level by changing the config and then unload,load it --- Module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Module.py b/Module.py index fd3156b..6aed549 100644 --- a/Module.py +++ b/Module.py @@ -41,6 +41,9 @@ class Module(object): self.irc = irc self.config = config self.server = server + + # reload file config every time + logging.config.fileConfig('logging.cfg') self.log = logging.getLogger('drbotzo.'+self.__class__.__name__.lower()) self.is_shutdown = False