fix(proxy): log prisma client resolution failures at debug

Address Greptile review: surface import/attribute errors instead of silently
skipping the DB-backed blocked-user check.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Taranum Wasu 2026-07-05 00:03:09 +05:30
parent 353d5cad0b
commit fbfb0d297f

View file

@ -54,6 +54,10 @@ class _ENTERPRISE_BlockedUserList(CustomLogger):
return global_prisma_client
except Exception:
verbose_proxy_logger.debug(
"blocked_user_list: could not resolve global prisma_client",
exc_info=True,
)
return None
def print_verbose(self, print_statement, level: Literal["INFO", "DEBUG"] = "DEBUG"):