From 5da0044f233a831c3ed8bf4ce701c9a507f60d54 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 12 Feb 2025 13:36:24 +0200 Subject: [PATCH] :test_tube: Print stack --- acapy_agent/ledger/indy_vdr.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acapy_agent/ledger/indy_vdr.py b/acapy_agent/ledger/indy_vdr.py index ee7107a589..9fd0afbd98 100644 --- a/acapy_agent/ledger/indy_vdr.py +++ b/acapy_agent/ledger/indy_vdr.py @@ -156,6 +156,7 @@ async def get_or_create( read_only, "".join(traceback.format_stack(limit=5)), ) + traceback.print_stack(limit=10) config_key = (name, keepalive, cache_duration, read_only, socks_proxy) LOGGER.debug("Generated config key: %s", config_key) @@ -534,6 +535,7 @@ async def __aenter__(self) -> "IndyVdrLedger": "Entering IndyVdrLedger context manager\nTraceback:\n%s", "".join(traceback.format_stack(limit=5)), ) + traceback.print_stack(limit=10) await super().__aenter__() await self.pool.context_open() return self @@ -544,6 +546,7 @@ async def __aexit__(self, exc_type, exc, tb): "Exiting IndyVdrLedger context manager\nTraceback:\n%s", "".join(traceback.format_stack(limit=5)), ) + traceback.print_stack(limit=10) await self.pool.context_close() await super().__aexit__(exc_type, exc, tb)