Updated some format, didn't log some messages when the world is dying.

This commit is contained in:
Jeremy Fincher 2003-12-03 22:31:33 +00:00
parent 8fc9b00c03
commit bb154e0a7f
1 changed files with 6 additions and 5 deletions

View File

@ -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()
log.debug('Regexp cache size: %s', len(sre._cache)) if not dying:
log.debug('Hostmask pattern cache size: %s' % len(ircutils._patternCache)) log.debug('Regexp cache size: %s', len(sre._cache))
log.info('%s upkeep ran.', time.strftime(conf.logTimestampFormat)) log.debug('Pattern cache size: %s'%len(ircutils._patternCache))
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