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

Startup: Log application and Python version, extra in debug.

* appversion and sys.version logged at INFO.
* At DEBUG: platform, argv[0], exec_prefix, executable, sys.path
This commit is contained in:
Athanasius 2020-09-10 10:14:58 +01:00
parent b162747e6e
commit b4d7d56222

View File

@ -1032,7 +1032,13 @@ if __name__ == "__main__":
enforce_single_instance()
from EDMCLogging import logger
logger.info('Startup')
logger.info(f'Startup v{appversion} : Running on Python v{sys.version}')
logger.debug(f'''Platform: {sys.platform}
argv[0]: {sys.argv[0]}
exec_prefix: {sys.exec_prefix}
executable: {sys.executable}
sys.path: {sys.path}'''
)
# TODO: unittests in place of these
# logger.debug('Test from __main__')