docs: update debugging section

This commit is contained in:
Stepan Kuzmin 2021-07-16 13:09:18 +03:00
parent 49942734af
commit 477834bb7c
No known key found for this signature in database
GPG Key ID: 41335DA6EE45C2B6
2 changed files with 11 additions and 3 deletions

View File

@ -169,7 +169,7 @@ L.vectorGrid
[deck.gl](https://deck.gl/) is a WebGL-powered framework for visual exploratory data analysis of large datasets.
You can add vector tiles using [MVTLayer](https://deck.gl/docs/api-reference/geo-layers/mvt-layer). MVTLayer `data` property defines the remote data for the MVT layer. It can be
* `String`: Either a URL template or a [TileJSON](https://github.com/mapbox/tilejson-spec) URL.
* `String`: Either a URL template or a [TileJSON](https://github.com/mapbox/tilejson-spec) URL.
* `Array`: an array of URL templates. It allows to balance the requests across different tile endpoints. For example, if you define an array with 4 urls and 16 tiles need to be loaded, each endpoint is responsible to server 16/4 tiles.
* `JSON`: A valid [TileJSON object](https://github.com/mapbox/tilejson-spec/tree/master/2.2.0).
@ -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
```

View File

@ -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