mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Let's segregate our ChannelLogger logfiles.
This commit is contained in:
parent
d0e5d72d00
commit
d0552fdcf2
@ -151,6 +151,9 @@ class ChannelLogger(callbacks.Privmsg):
|
||||
else:
|
||||
try:
|
||||
logDir = conf.supybot.directories.log()
|
||||
logDir = os.path.join(logDir, self.name())
|
||||
if not os.path.exists(logDir):
|
||||
os.makedirs(logDir)
|
||||
name = self.getLogName(channel)
|
||||
log = file(os.path.join(logDir, name), 'a')
|
||||
self.logs[channel] = log
|
||||
|
Loading…
Reference in New Issue
Block a user