rename logger to drbotzo for clarity's sake
This commit is contained in:
parent
bd3fc16a1d
commit
e6be873f3d
|
@ -40,7 +40,7 @@ class Module(object):
|
||||||
self.irc = irc
|
self.irc = irc
|
||||||
self.config = config
|
self.config = config
|
||||||
self.server = server
|
self.server = server
|
||||||
self.log = logging.getLogger('dr.botzo')
|
self.log = logging.getLogger('drbotzo')
|
||||||
|
|
||||||
self.is_shutdown = False
|
self.is_shutdown = False
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ except NoOptionError as e:
|
||||||
irclib.DEBUG = config.getboolean('dr.botzo', 'debug')
|
irclib.DEBUG = config.getboolean('dr.botzo', 'debug')
|
||||||
|
|
||||||
logging.config.fileConfig('logging.cfg')
|
logging.config.fileConfig('logging.cfg')
|
||||||
log = logging.getLogger('dr.botzo')
|
log = logging.getLogger('drbotzo')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# make sure we can initialize the database, if such a thing is
|
# make sure we can initialize the database, if such a thing is
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[loggers]
|
[loggers]
|
||||||
keys = root,dr.botzo
|
keys = root,drbotzo
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys = stdout,logfile
|
keys = stdout,logfile
|
||||||
|
@ -11,7 +11,7 @@ keys = verbose
|
||||||
level = INFO
|
level = INFO
|
||||||
handlers = stdout,logfile
|
handlers = stdout,logfile
|
||||||
|
|
||||||
[logger_dr.botzo]
|
[logger_drbotzo]
|
||||||
level = DEBUG
|
level = DEBUG
|
||||||
handlers = stdout,logfile
|
handlers = stdout,logfile
|
||||||
propagate = 0
|
propagate = 0
|
||||||
|
|
Loading…
Reference in New Issue