A little bit cleaner.

This commit is contained in:
Jeremy Fincher 2004-10-01 21:27:02 +00:00
parent c23e6c97a6
commit a2d30a88f5

View File

@ -212,11 +212,12 @@ if __name__ == '__main__':
def closeRegistry(): def closeRegistry():
# We only print if world.dying so we don't see these messages during # We only print if world.dying so we don't see these messages during
# upkeep. # upkeep.
logger = log.debug
if world.dying: if world.dying:
log.info('Writing registry file to %s', registryFilename) logger = log.info
logger('Writing registry file to %s', registryFilename)
registry.close(conf.supybot, registryFilename, annotated=True) registry.close(conf.supybot, registryFilename, annotated=True)
if world.dying: logger('Finished writing registry file.')
log.info('Finished writing registry file.')
world.flushers.append(closeRegistry) world.flushers.append(closeRegistry)
world.registryFilename = registryFilename world.registryFilename = registryFilename