From b9bcff22f8855eb3c66732ed448c6738f9fb4a3a Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Wed, 26 Feb 2025 14:55:40 -0800 Subject: [PATCH] Removes leftover logging calls --- src/documents/views.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/documents/views.py b/src/documents/views.py index 2d85ffc4e..963adceb7 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -2229,10 +2229,10 @@ class RemoteVersionView(GenericAPIView): remote_version = data["tag_name"] # Some early tags used ngx-x.y.z remote_version = remote_version.removeprefix("ngx-") - except ValueError: - logger.debug("An error occurred parsing remote version json") - except httpx.HTTPError: - logger.exception("An error occurred checking for available updates") + except ValueError as e: + logger.debug(f"An error occurred parsing remote version json: {e}") + except httpx.HTTPError as e: + logger.debug(f"An error occurred checking for available updates: {e}") is_greater_than_current = ( packaging_version.parse( @@ -2240,9 +2240,6 @@ class RemoteVersionView(GenericAPIView): ) > current_version ) - logger.info(remote_version) - logger.info(current_version) - logger.info(is_greater_than_current) return Response( {