changeset 3996:7a6c7abd7dbb

component AP gateway (http_server): use log.exception instead of log.error
author Goffi <goffi@goffi.org>
date Thu, 02 Mar 2023 12:39:16 +0100
parents 27e5294649c2
children 1b7c6ee080b9
files sat/plugins/plugin_comp_ap_gateway/http_server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/http_server.py	Fri Feb 10 17:37:37 2023 +0100
+++ b/sat/plugins/plugin_comp_ap_gateway/http_server.py	Thu Mar 02 12:39:16 2023 +0100
@@ -78,7 +78,7 @@
         request.setResponseCode(http_code, None if msg is None else msg.encode())
 
     def _onRequestError(self, failure_: failure.Failure, request: "HTTPRequest") -> None:
-        log.error(f"Internal error: {failure_.value}")
+        log.exception(f"Internal error: {failure_.value}")
         self.responseCode(
             request,
             http.INTERNAL_SERVER_ERROR,