Make logging call lazy

This commit is contained in:
Éric Araujo 2011-08-19 02:55:11 +02:00
parent e197df06fb
commit 43a7ee1f3b
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
if not os.path.exists(archive_dir):
if logger is not None:
logger.info("creating %s" % archive_dir)
logger.info("creating %s", archive_dir)
if not dry_run:
os.makedirs(archive_dir)