X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b96728249db70975be33bb5c5721ec5b8a0eb3ff..4ad6191d53207a8b2d4c0c8a30b18119daaa5fbc:/sdk/python/arvados/commands/run.py diff --git a/sdk/python/arvados/commands/run.py b/sdk/python/arvados/commands/run.py index f0d518d4e9..0fe05da22b 100644 --- a/sdk/python/arvados/commands/run.py +++ b/sdk/python/arvados/commands/run.py @@ -39,6 +39,8 @@ import arvados.config as config from arvados._version import __version__ +logger = logging.getLogger('arvados.arv-run') +logger.setLevel(logging.INFO) class ArvFile(object): def __init__(self, prefix, fn): @@ -63,7 +65,7 @@ def is_in_collection(root, branch): return (None, None) fn = os.path.join(root, ".arvados#collection") if os.path.exists(fn): - with file(fn, 'r') as f: + with open(fn, 'r') as f: c = json.load(f) return (c["portable_data_hash"], branch) else: @@ -234,7 +236,7 @@ def uploadfiles(files, api, dry_run=False, num_retries=0, # empty collection pdh = collection.portable_data_hash() assert (pdh == config.EMPTY_BLOCK_LOCATOR), "Empty collection portable_data_hash did not have expected locator, was %s" % pdh - logger.info("Using empty collection %s", pdh) + logger.debug("Using empty collection %s", pdh) for c in files: c.keepref = "%s/%s" % (pdh, c.fn)