We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log
"debug-print"
Currently SeaORM uses a feature flag called "debug-print" which simple executes a println with the query.
println
It might be nice to use the "log" / "env-logger" crates instead.
"log"
"env-logger"
For example, replace
debug_print!("{}", stmt);
with
info!(target: "sea-orm-query", "{}", stmt);
The benefit of this is that apps using SeaORM can change logging through env vars rather than recompiling with a new feature flag. For example:
$ RUST_LOG=sea-orm-query=info ./main
The text was updated successfully, but these errors were encountered:
Yes, I agree. It will be very helpful at deployment!
Sorry, something went wrong.
Debug log docs (SeaQL/sea-orm#114)
26a17d9
billy1624
Successfully merging a pull request may close this issue.
Currently SeaORM uses a feature flag called "debug-print" which simple executes a
println
with the query.It might be nice to use the
"log"
/"env-logger"
crates instead.For example, replace
with
The benefit of this is that apps using SeaORM can change logging through env vars rather than recompiling with a new feature flag.
For example:
The text was updated successfully, but these errors were encountered: