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

TRACE: Add some INFO logging if activating TRACE or TRACE_ALL

This commit is contained in:
Athanasius 2021-08-13 12:03:04 +01:00
parent 80976c8cf5
commit f7d0db8354
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -132,9 +132,11 @@ if __name__ == '__main__': # noqa: C901
level_to_set: Optional[int] = None
if args.trace or args.trace_on:
level_to_set = logging.TRACE # type: ignore # it exists
logger.info('Setting TRACE level debugging due to either --trace or a --trace-on')
if args.trace_all or (args.trace_on and ('*' in args.trace_on or 'all' in args.trace_on)):
level_to_set = logging.TRACE_ALL # type: ignore # it exists
logger.info('Setting TRACE_ALL level debugging due to either --trace-all or a --trace-on *|all')
if level_to_set is not None:
logger.setLevel(level_to_set)