From 73581fc6e091521e5522430df2782c516353da36 Mon Sep 17 00:00:00 2001 From: M Kunde Date: Tue, 12 Nov 2024 22:45:45 +0100 Subject: [PATCH] useful information for debugging --- giftless/error_handling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/giftless/error_handling.py b/giftless/error_handling.py index 3ec25c4..b330941 100644 --- a/giftless/error_handling.py +++ b/giftless/error_handling.py @@ -28,6 +28,7 @@ def error_as_json(cls, ex): """ code = ex.code if hasattr(ex, 'code') else 500 data = {"message": str(ex)} + logging.debug(f"Returning error response: {data} with status {code}") return output_git_lfs_json(data=data, code=code)