From 5ceac5ded75ccd43ad54e67b5461398358aeb5ad Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 11 Aug 2021 12:47:00 +0100 Subject: [PATCH] Contributing.md: Fix doc of how to use trace_on --- Contributing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contributing.md b/Contributing.md index 50682e64..02e02b58 100644 --- a/Contributing.md +++ b/Contributing.md @@ -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"]=})') ```