prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
583 stars 62 forks source link

LOG_QUERIES has no effect anymore #413

Open dpetrick opened 1 year ago

dpetrick commented 1 year ago

Logging of queries has apparently been moved to metrics, which always emits query "log" events on debug: https://github.com/prisma/quaint/blob/main/src/connector/metrics.rs#L79

Unsure if this is a bug or intentional, so leaving the labeling to you. The LOG_QUERIES variable in the README doesn't do anything anymore.

On that note, mixing the query logging with the metrics implementation is an odd design choice and caused some confusion when I integrated quaint into a project.