diff --git a/hancho.py b/hancho.py index ee5048e..88ca968 100755 --- a/hancho.py +++ b/hancho.py @@ -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}") @@ -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):