From a2d30a88f59a6a23ef07eff734640941181d31d6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 1 Oct 2004 21:27:02 +0000 Subject: [PATCH] A little bit cleaner. --- scripts/supybot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/supybot b/scripts/supybot index 355ca2cd3..97d532605 100755 --- a/scripts/supybot +++ b/scripts/supybot @@ -212,11 +212,12 @@ if __name__ == '__main__': def closeRegistry(): # We only print if world.dying so we don't see these messages during # upkeep. + logger = log.debug 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) - if world.dying: - log.info('Finished writing registry file.') + logger('Finished writing registry file.') world.flushers.append(closeRegistry) world.registryFilename = registryFilename