Skip to content

Commit

Permalink
don't forget the config blob in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby committed Mar 12, 2024
1 parent bfe0788 commit a99a720
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hancho.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ async def async_main():
break
await asyncio.wait(pending_tasks)

# Print a copy of the global config after all tasks are done if we're in
# debug mode
if config.debug:
log(f"Hancho global config: {config}")
log("")

# Done, print status info if needed
if config.debug or config.verbose:
log(f"tasks total: {this.tasks_total}")
Expand Down Expand Up @@ -556,6 +562,11 @@ async def run_async(self):
this.tasks_fail += 1
return Cancel()

finally:
if self.debug:
log("")


########################################

async def task_main(self):
Expand Down

0 comments on commit a99a720

Please sign in to comment.