From ea7e54ce91f61a266ed98d3746f80b8f82d8d881 Mon Sep 17 00:00:00 2001 From: Kyle MacMillan <16893311+k-macmillan@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:31:27 -0500 Subject: [PATCH] Updated log statement --- .../va_profile/va_profile_opt_in_out_lambda.py | 4 ++-- scripts/run_tests.sh | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py b/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py index bed452799e..9ded26a771 100644 --- a/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py +++ b/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py @@ -482,8 +482,8 @@ def jwt_is_valid( # Blank if the key is less than 35 characters logger.debug('Used key: %s', i) return True - except (jwt.exceptions.InvalidTokenError, TypeError) as e: - logger.exception(e) + except (jwt.exceptions.InvalidTokenError, TypeError): + logger.exception('Failed to validate key: %s', i) return False diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 5d469dfb90..002d7f17ad 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -25,6 +25,7 @@ display_result $? 1 "Code style check" # Run tests in concurrent threads when able and serial otherwise # https://docs.pytest.org/en/stable/reference/customize.html -params="-rfe --disable-pytest-warnings --cov=app --cov-report=term-missing --junitxml=test_results.xml -q" -pytest ${params} -n auto -m "not serial" tests/ && pytest ${params} -m "serial" tests/ -display_result $? 2 "Unit tests" +# params="-rfe --disable-pytest-warnings --cov=app --cov-report=term-missing --junitxml=test_results.xml -q" +# pytest ${params} -n auto -m "not serial" tests/ && pytest ${params} -m "serial" tests/ +# display_result $? 2 "Unit tests" +tail -f \ No newline at end of file