Skip to content

Commit

Permalink
Log 400-404 requests as DEBUG level
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbaldwin44 committed Sep 25, 2024
1 parent b69f698 commit bf9d47c
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 @@ -150,7 +150,7 @@ def handle_exception(error):
error_message = str(error)
error_code = getattr(error, "code", 500)
logger.log(
logging.INFO if error_code <= 404 else logging.ERROR,
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}",
)
return make_response(error_message, error_code)
Expand Down

0 comments on commit bf9d47c

Please sign in to comment.