Troubleshooting
Log levels are controlled on a per-module basis, and by default all logging is disabled except for errors. Logging is
controlled via the RUST_LOG
environment variable. The value of this environment variable is a comma-separated list of
logging directives.
This will enable debug logging for all modules:
export RUST_LOG=debug
martin postgresql://postgres@localhost/db
While this will only enable verbose logging for the actix_web
module and enable debug logging for the martin
and tokio_postgres
modules:
export RUST_LOG=actix_web=info,martin=debug,tokio_postgres=debug
martin postgresql://postgres@localhost/db