debug: trace get_sor_context call

This commit is contained in:
yumoqing 2026-08-11 16:58:51 +08:00
parent 2bc0ae3b29
commit c34abef54a

View File

@ -39,6 +39,7 @@ _orig_sor_ctx = _dbp.get_sor_context
async def _patched_sor_ctx(env, modulename, errorback=None):
dbname = env.get_module_dbname(modulename)
print('[pccs] get_sor_context called, dbname=' + str(dbname), flush=True)
async with _global_db.sqlorContext(dbname) as sor:
yield sor