Skip to content

Commit

Permalink
webui: Add http method to log message when there is an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Oct 6, 2024
1 parent 6c11adf commit 80a1c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 80a1c01

Please sign in to comment.