Skip to content

Commit

Permalink
Print less if there's nothing of notice happening
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmervdl committed Sep 18, 2023
1 parent dfef933 commit 8035b1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions opuscleaner/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def babysit_child(n: int, child: Popen, name: str, print_queue: PrintQueue, ctrl

child.wait()

print_queue.put(f'[run.py] {name} exited with status code {child.returncode}\n'.encode())

ctrl_queue.put((n, child.returncode))


Expand Down Expand Up @@ -250,7 +248,7 @@ def run(self, pool:ProcessPipeline, stdin:BinaryIO, stdout:BinaryIO, *, tee:bool
if not is_last_step and not tee:
stdin = none_throws(child.stdout)

pool.print_queue.put(f'[run.py] step {pool.name}{i}/{step.name}: Started {step.command}\n'.encode())
pool.print_queue.put(f'[run.py] step {pool.name}{i}/{step.name}: Started {step.command} (pid {child.pid})\n'.encode())

# If we are tee-ing for debug, shunt the output to a separate file
# TODO: uncompressed at the moment. Might be trouble.
Expand Down

0 comments on commit 8035b1b

Please sign in to comment.