Fix direction of comparision, use symbolic constant instead of raw value.

pull/50/head
Doug Felt 2016-04-13 11:38:03 -07:00
parent 44568b1c93
commit b1588691cd
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def copy_with_rename(src_dir, dst_dir, accept_pred=None, rename=None):
shutil.copy2(src, dst) shutil.copy2(src, dst)
logging.debug('cp -p %s %s', src, dst) logging.debug('cp -p %s %s', src, dst)
count += 1 count += 1
if logging.getLogger().getEffectiveLevel() >= 20: if logging.getLogger().getEffectiveLevel() <= logging.INFO:
src_short = tool_utils.short_path(src_dir) src_short = tool_utils.short_path(src_dir)
dst_short = tool_utils.short_path(dst_dir) dst_short = tool_utils.short_path(dst_dir)
logging.info('Copied %d files (replacing %d) from %s to %s', logging.info('Copied %d files (replacing %d) from %s to %s',