From 9a1b7db2dc0d709ad2efc0206f98b684da4ebd72 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Tue, 17 Oct 2023 14:42:52 +0200 Subject: [PATCH] Print python version. --- basicswap/basicswap.py | 6 ++++-- bin/basicswap_prepare.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index f7f0801..fbc242f 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -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) diff --git a/bin/basicswap_prepare.py b/bin/basicswap_prepare.py index b3480e5..603c81a 100755 --- a/bin/basicswap_prepare.py +++ b/bin/basicswap_prepare.py @@ -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}')