Print python version.

This commit is contained in:
tecnovert 2023-10-17 14:42:52 +02:00
parent 2a2f1ca3b6
commit 9a1b7db2dc
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
2 changed files with 5 additions and 2 deletions

View file

@ -664,9 +664,11 @@ class BasicSwap(BaseApp):
self.coin_clients[coin]['interface'] = self.createPassthroughInterface(coin)
def start(self):
import platform
self.log.info('Starting BasicSwap %s, database v%d\n\n', __version__, self.db_version)
self.log.info('sqlalchemy version %s', sa.__version__)
self.log.info('timezone offset: %d (%s)', time.timezone, time.tzname[0])
self.log.info(f'Python version: {platform.python_version()}')
self.log.info('SQLAlchemy version: %s', sa.__version__)
self.log.info('Timezone offset: %d (%s)', time.timezone, time.tzname[0])
upgradeDatabase(self, self.db_version)
upgradeDatabaseData(self, self.db_data_version)

View file

@ -1430,6 +1430,7 @@ def main():
bin_dir = os.path.join(data_dir, 'bin')
logger.info(f'BasicSwap prepare script {__version__}\n')
logger.info(f'Python version: {platform.python_version()}')
logger.info(f'Data dir: {data_dir}')
logger.info(f'Bin dir: {bin_dir}')
logger.info(f'Chain: {chain}')