Make logging call lazy
This commit is contained in:
parent
e197df06fb
commit
43a7ee1f3b
|
@ -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 not os.path.exists(archive_dir):
|
||||||
if logger is not None:
|
if logger is not None:
|
||||||
logger.info("creating %s" % archive_dir)
|
logger.info("creating %s", archive_dir)
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
os.makedirs(archive_dir)
|
os.makedirs(archive_dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue