mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
A little bit cleaner.
This commit is contained in:
parent
c23e6c97a6
commit
a2d30a88f5
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user