From 80a1c01171ff0caf3a29f1772637cc266750acd3 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Sun, 6 Oct 2024 13:43:24 +0200 Subject: [PATCH] webui: Add http method to log message when there is an error. --- locust/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/web.py b/locust/web.py index b41be51bda..a788b4236c 100644 --- a/locust/web.py +++ b/locust/web.py @@ -151,7 +151,7 @@ def handle_exception(error): error_code = getattr(error, "code", 500) logger.log( logging.DEBUG if error_code <= 404 else logging.ERROR, - f"UI got request for {request.path}, but it resulted in a {error_code}: {error.name}", + f"UI got request for {request.method} {request.path}, but it resulted in a {error_code}: {error.name}", ) return make_response(error_message, error_code)