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

EDMC: Actually set config.trace_on from CL args

Else they won't work, duh!
This commit is contained in:
Athanasius 2021-08-13 15:20:21 +01:00
parent 4433b67c82
commit 021d3a25fa
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -191,6 +191,12 @@ exec_prefix: {sys.exec_prefix}
executable: {sys.executable}
sys.path: {sys.path}'''
)
if args.trace_on and len(args.trace_on) > 0:
import config as conf_module
conf_module.trace_on = [x.casefold() for x in args.trace_on] # duplicate the list just in case
for d in conf_module.trace_on:
logger.info(f'marked {d} for TRACE')
log_locale('Initial Locale')