Skip to content

Commit

Permalink
reduce verbosity during normal use
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Jan 4, 2024
1 parent 3fbbd37 commit 57e2063
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cubi_tk/irods/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ def execute(self):
if res: # pragma: nocover
return res
logger.info("Starting cubi-tk irods %s", self.command_name)
logger.info("Args: %s", self.args)
logger.debug("Args: %s", self.args)

# Load iRODS environment
with open(self.irods_env_path, "r", encoding="utf-8") as f:
irods_env = json.load(f)
logger.info("iRODS environment: %s", irods_env)
logger.debug("iRODS environment: %s", irods_env)

# Connect to iRODS
with self._get_irods_sessions(self.args.num_parallel_tests) as irods_sessions:
Expand All @@ -156,7 +156,6 @@ def execute(self):
logger.info("Querying for data objects")
data_objs = self.get_data_objs(root_coll)
self.run_checks(data_objs)
logger.info("All done")

def run_checks(self, data_objs: dict):
"""Run checks on files, in parallel if enabled."""
Expand All @@ -175,7 +174,6 @@ def run_checks(self, data_objs: dict):
lst_files,
)

# counter = Value(c_ulonglong, 0)
with tqdm.tqdm(total=num_files, unit="files", unit_scale=False) as t:
if self.args.num_parallel_tests < 2:
for obj in data_objs["files"]:
Expand Down

0 comments on commit 57e2063

Please sign in to comment.