From 9e76e73cd4c839234e638c065b2b73213cb2b8fa Mon Sep 17 00:00:00 2001 From: szeka9 Date: Sat, 29 Aug 2026 17:04:17 +0200 Subject: [PATCH] Log generic and application-related exceptions as errors Generic exceptions are currently logged as warnings. Treat them as errors instead to be logged at all verbosity levels. --- src/pyrobusta/protocol/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyrobusta/protocol/http.py b/src/pyrobusta/protocol/http.py index 415479c..437a48e 100644 --- a/src/pyrobusta/protocol/http.py +++ b/src/pyrobusta/protocol/http.py @@ -609,7 +609,7 @@ def run(self, rx): except Exception as e: # pylint: disable=W0718 from pyrobusta.utils import logging - logging.warning("%s.run: error=[%s]", __name__, e) + logging.error("%s.run: error=[%s]", __name__, e) self.abort(500) self.set_response_body(b"Internal Server Error")