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

monitor.py: trace loadgames to CQC only if in trace_on

This commit is contained in:
norohind 2021-08-10 14:27:47 +03:00
parent 030713f5b9
commit 42ce2ad414
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -530,7 +530,9 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
self.cmdr = entry['Commander']
# 'Open', 'Solo', 'Group', or None for CQC (and Training - but no LoadGame event)
if not entry.get('Ship') and not entry.get('GameMode') or entry.get('GameMode').lower() == 'CQC':
logger.trace(f'loadgame to cqc: {entry}')
if 'cqc-loadgame-events' in trace_on:
logger.trace(f'loadgame to cqc: {entry}')
self.mode = 'CQC'
else: