You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove @logger.catch decorators and make loguru an optional dependency (#8)
@logger.catch silently swallows exceptions and returns None, preventing
proper error propagation to callers. This is unsuitable for production
where frameworks need exceptions to flow for proper HTTP responses,
retries, and observability. The existing try/except blocks already
provide targeted error handling with session rollback and explicit
logger.error() calls where needed.
Loguru is now an optional dependency (pip install sqlmodel_crud_utils[loguru])
so teams using their own logging/telemetry can use stdlib logging instead.
The logger in utils.py falls back to logging.getLogger() when loguru is
not installed.
https://claude.ai/code/session_01G7xKgBPQia81rZHBU6BxCG
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments