mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-12-29 05:40:32 +00:00
Add note about RUST_LOG in 0.4
This commit is contained in:
parent
8734246146
commit
fb3bf2df71
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -488,6 +488,22 @@ path = "/previous/path/sled-repo"
|
|||
path = "/previous/path/files"
|
||||
```
|
||||
|
||||
If your previous `RUST_LOG` variable was set, it has been split into two different configuration
|
||||
options:
|
||||
- `PICTRS__TRACING__LOGGING__TARGETS`: This dictates what logs should be printed in the console while
|
||||
pict-rs is running.
|
||||
- `PICTRS__TRACING__OPENTELEMETRY__TARGETS`: This dictates what spans and events should be exported
|
||||
as opentelemetry data, if enabled.
|
||||
|
||||
You can also configure these options via the configuration file:
|
||||
```toml
|
||||
[tracing.logging]
|
||||
targets = "debug"
|
||||
|
||||
[tracing.opentelemetry]
|
||||
targets = "debug"
|
||||
```
|
||||
|
||||
If the migration doesn't work due to a configuration error, the new sled-repo directory can be
|
||||
deleted and a new migration will be automatically triggered on the next launch.
|
||||
|
||||
|
|
Loading…
Reference in a new issue