From 44ce25f4ca94c93e4d8614c16dfe705332d09613 Mon Sep 17 00:00:00 2001 From: psnelgrove-r7 <65517780+psnelgrove-r7@users.noreply.github.com> Date: Thu, 20 Nov 2025 09:48:54 -0500 Subject: [PATCH] remove debug log statement in EXECUTOR shutdown callback Using the signals module the library tries to gracefully shutdown the ThreadPoolExecutor with a callback. For us this causes some issues with the logger module warning that you're writing to write to a log file after the file is closed. With these signal callbacks you can't control the shutdown order. --- alibabacloud_credentials/provider/refreshable.py | 1 - 1 file changed, 1 deletion(-) diff --git a/alibabacloud_credentials/provider/refreshable.py b/alibabacloud_credentials/provider/refreshable.py index 510d311..967024e 100644 --- a/alibabacloud_credentials/provider/refreshable.py +++ b/alibabacloud_credentials/provider/refreshable.py @@ -26,7 +26,6 @@ def _shutdown_handler(): - log.debug("Shutting down executor...") EXECUTOR.shutdown(wait=False)