vapor / fluent

Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
https://docs.vapor.codes/4.0/fluent/overview/
MIT License
1.3k stars 171 forks source link

SQL logging #726

Closed finestructure closed 3 years ago

finestructure commented 3 years ago

As part of a recent package update that transitioned to PostgresNIO 1.5.0 I noticed that SQL queries aren't logged anymore at log level debug. My understanding is that the change was motivated by logging guidelines which moved SQL logging from debug to trace.

While using trace should work for most of our typical debugging use cases, it would be great if there was perhaps an option to log SQL from Fluent at debug level, so that the SQL doesn't get drowned out it trace.

0xTim commented 3 years ago

Duplicate of vapor/fluent-postgres-driver#181