LogRequestsMiddleware(.debug) not logging the actual postgres error. It suggests using String(reflecting: error) instead
`LogRequestsMiddleware(.debug)` not logging the actual Postgres error... It suggests using String(reflecting: error) instead with the following message:
`error.type=PSQLError – Generic description to prevent accidental leakage of sensitive data. For debugging details, use `String(reflecting: error)`.`
Steps to reproduce:
1. add `LogRequestsMiddleware(.debug)` to your middleware
2. create a request that throws a psql error (like creating a todo with duplicate id)
- Actual:
the error above will be shown
- Expected:
psql error should log the error stating duplicate id
关闭于 2026-01-18 2 条评论