Skip to content

Commit

Permalink
🧪 Print stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Feb 12, 2025
1 parent faa24e9 commit 5da0044
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acapy_agent/ledger/indy_vdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 5da0044

Please sign in to comment.