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:
parent
b162747e6e
commit
b4d7d56222
@ -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__')
|
||||
|
Loading…
x
Reference in New Issue
Block a user