mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Updated some format, didn't log some messages when the world is dying.
This commit is contained in:
parent
8fc9b00c03
commit
bb154e0a7f
@ -84,20 +84,21 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
|
|||||||
log.warning('Uncollectable garbage: %s', gc.garbage)
|
log.warning('Uncollectable garbage: %s', gc.garbage)
|
||||||
if 'noflush' not in tempvars:
|
if 'noflush' not in tempvars:
|
||||||
flush()
|
flush()
|
||||||
|
if not dying:
|
||||||
log.debug('Regexp cache size: %s', len(sre._cache))
|
log.debug('Regexp cache size: %s', len(sre._cache))
|
||||||
log.debug('Hostmask pattern cache size: %s' % len(ircutils._patternCache))
|
log.debug('Pattern cache size: %s'%len(ircutils._patternCache))
|
||||||
log.info('%s upkeep ran.', time.strftime(conf.logTimestampFormat))
|
log.info('%s upkeep ran.', time.strftime(conf.logTimestampFormat))
|
||||||
return collected
|
return collected
|
||||||
|
|
||||||
def makeIrcsDie():
|
def makeIrcsDie():
|
||||||
"""Kills Ircs."""
|
"""Kills Ircs."""
|
||||||
log.info('Assassinating the Irc object council...')
|
log.info('Assassinating the Irc object council.')
|
||||||
for irc in ircs[:]:
|
for irc in ircs[:]:
|
||||||
irc.die()
|
irc.die()
|
||||||
|
|
||||||
def startDying():
|
def startDying():
|
||||||
"""Starts dying."""
|
"""Starts dying."""
|
||||||
log.info('Begining that long, slow walk into the night...')
|
log.info('Beginning that long, slow walk into the night.')
|
||||||
global dying
|
global dying
|
||||||
dying = True
|
dying = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user