From eb8ba8493facfc070dca67b901d47c99a6bec2c7 Mon Sep 17 00:00:00 2001 From: Amin Solhizadeh Date: Fri, 5 Apr 2024 16:19:36 +0200 Subject: [PATCH] More fixes --- tests/softhsm_setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/softhsm_setup.py b/tests/softhsm_setup.py index d39033b3..fc701608 100644 --- a/tests/softhsm_setup.py +++ b/tests/softhsm_setup.py @@ -208,7 +208,7 @@ def setup() -> None: ) signer_cert_pem = _temp_file() openssl_conf = _temp_file() - logging.debug(f'Generating OpenSSL config for version {openssl_version}') + logging.debug('Generating OpenSSL config for version %s', openssl_version) with open(openssl_conf, 'w') as f: f.write( '\n'.join( @@ -314,7 +314,7 @@ def setup() -> None: print('-' * 64) traceback.print_exc() print('-' * 64) - logging.error('PKCS11 tests disabled: unable to initialize test token: %s', ex) + logging.exception('PKCS11 tests disabled: unable to initialize test token', exc_info=True) raise ex