mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 04:41:46 +03:00
docs: update debugging section
This commit is contained in:
parent
49942734af
commit
477834bb7c
11
README.md
11
README.md
@ -575,10 +575,17 @@ cd ./target/release/
|
||||
|
||||
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 verbose logging for the `actix_web` module and enable debug logging for the `martin` and `postgres` modules:
|
||||
This will enable debug logging for all modules:
|
||||
|
||||
```shell
|
||||
export RUST_LOG=actix_web=info,martin=debug,postgres=debug
|
||||
export RUST_LOG=debug
|
||||
martin postgres://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:
|
||||
|
||||
```shell
|
||||
export RUST_LOG=actix_web=info,martin=debug,tokio_postgres=debug
|
||||
martin postgres://postgres@localhost/db
|
||||
```
|
||||
|
||||
|
@ -9,6 +9,7 @@ services:
|
||||
environment:
|
||||
- WATCH_MODE=true
|
||||
- DATABASE_URL=postgres://postgres@db/db
|
||||
- RUST_LOG=actix_web=info,martin=debug,tokio_postgres=debug
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user