Skip to content

Commit

Permalink
application: log http API request exceptions in verbose mode
Browse files Browse the repository at this point in the history
Signed-off-by:  Eric Callahan <[email protected]>
  • Loading branch information
Arksine committed Jan 23, 2025
1 parent 72ed175 commit 432a3a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions moonraker/components/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 432a3a6

Please sign in to comment.