From 6db656fecf960a2ed8bda09144f20c7a269949bf Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 13 Apr 2023 17:47:13 -0400 Subject: [PATCH] Flip allocate log msgs to debug --- tractor/trionics/_mngrs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/trionics/_mngrs.py b/tractor/trionics/_mngrs.py index 5621f79..89db895 100644 --- a/tractor/trionics/_mngrs.py +++ b/tractor/trionics/_mngrs.py @@ -237,7 +237,7 @@ async def maybe_open_context( yielded = _Cache.values[ctx_key] except KeyError: - log.info(f'Allocating new {acm_func} for {ctx_key}') + log.debug(f'Allocating new {acm_func} for {ctx_key}') mngr = acm_func(**kwargs) resources = _Cache.resources assert not resources.get(ctx_key), f'Resource exists? {ctx_key}' @@ -265,7 +265,7 @@ async def maybe_open_context( if yielded is not None: # if no more consumers, teardown the client if _Cache.users <= 0: - log.info(f'De-allocating resource for {ctx_key}') + log.debug(f'De-allocating resource for {ctx_key}') # XXX: if we're cancelled we the entry may have never # been entered since the nursery task was killed.