1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

Contributing.md: Fix doc of how to use trace_on

This commit is contained in:
Athanasius 2021-08-11 12:47:00 +01:00
parent 4a1b13199d
commit 5ceac5ded7
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -415,9 +415,9 @@ In addition to that we utilise one of the user-defined levels as:
still need to include `--trace`. The code to check and log would be like:
```python
from config import trace_on
import config as conf_module # Necessary to see the same config.trace_on as elsewhere
if 'edsm-cmdr-events' in trace_on:
if 'edsm-cmdr-events' in conf_module.trace_on:
logger.trace(f'De-queued ({cmdr=}, {entry["event"]=})')
```