Merge pull request #1241 from norohind/enhancement/1239/inara-trace-under-on_trace

inara.py: put events trace logging under `inara-events` trace_on option
This commit is contained in:
Athanasius authored and GitHub committed 2021-08-13 16:14:10 +01:00
commit ef468d4c23
1 file changed
+2 -1
+2 -1
View File
@@ -1491,7 +1491,8 @@ def new_worker():
]
}
logger.info(f'sending {len(data["events"])} events for {creds.cmdr}')
logger.trace(f'Events:\n{json.dumps(data)}\n')
logger.trace_if('plugin.inara.events', f'Events:\n{json.dumps(data)}\n')
try_send_data(TARGET_URL, data)
time.sleep(WORKER_WAIT_TIME)