From 432a3a653a6df36db4af5668c7f2178cee0120b7 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 23 Jan 2025 08:11:41 -0500 Subject: [PATCH] application: log http API request exceptions in verbose mode Signed-off-by: Eric Callahan --- moonraker/components/application.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moonraker/components/application.py b/moonraker/components/application.py index 57f6eb8d..54f7222e 100644 --- a/moonraker/components/application.py +++ b/moonraker/components/application.py @@ -701,6 +701,8 @@ async def _process_http_request(self, req_type: RequestType) -> None: args, req_type, transport, ip, self.current_user ) except ServerError as e: + if self.server.is_verbose_enabled(): + logging.exception("API Request Failure") raise tornado.web.HTTPError( e.status_code, reason=str(e)) from e if self.wrap_result: