[arvados] updated: 2.6.0-249-g07ae0247c

git repository hosting git at public.arvados.org
Wed Jun 7 12:04:35 UTC 2023


Summary of changes:
 sdk/python/arvados/api.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

       via  07ae0247ca233cd61d65dc600b8074c67291e3c0 (commit)
      from  d5749d0806f11da94e8ee3393b5166d4bba87198 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 07ae0247ca233cd61d65dc600b8074c67291e3c0
Author: Brett Smith <brett.smith at curii.com>
Date:   Wed Jun 7 08:04:13 2023 -0400

    20613: Bugfix boolean tucnaround
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/sdk/python/arvados/api.py b/sdk/python/arvados/api.py
index 2bb60564b..eb625c934 100644
--- a/sdk/python/arvados/api.py
+++ b/sdk/python/arvados/api.py
@@ -261,13 +261,13 @@ def api_client(
     # can cause clients to appear to hang early. This can be removed after
     # we have a more general story for handling googleapiclient logs (#20521).
     client_logger = logging.getLogger('googleapiclient.http')
-    client_logger_preconfigured = (
+    client_logger_unconfigured = (
         # "first time a client is instantiated" = thread that acquires this lock
         # It is never released.
         _googleapiclient_log_lock.acquire(blocking=False)
         and not client_logger.hasHandlers()
     )
-    if not client_logger_preconfigured:
+    if client_logger_unconfigured:
         client_level = client_logger.level
         client_filter = GoogleHTTPClientFilter()
         client_logger.addFilter(client_filter)
@@ -284,7 +284,7 @@ def api_client(
         num_retries=num_retries,
         **kwargs,
     )
-    if not client_logger_preconfigured:
+    if client_logger_unconfigured:
         client_logger.removeHandler(log_handler)
         client_logger.removeFilter(client_filter)
         client_logger.setLevel(client_level)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list