Skip to content

Commit

Permalink
Change log level for 404 to info.
Browse files Browse the repository at this point in the history
Error was causing these to show up in sentry causing a lot of noise.
  • Loading branch information
marcospri committed Mar 7, 2024
1 parent 7fbb155 commit ad3b765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lms/views/api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def forbidden(self):

@notfound_view_config()
def notfound(self):
LOG.error("Page not found: %s", self.request.url)
LOG.info("Page not found: %s", self.request.url)
self.request.response.status_int = 404
return ErrorBody(message=_("Endpoint not found."))

Expand Down
2 changes: 1 addition & 1 deletion lms/views/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, exception, request):

@notfound_view_config()
def notfound(self):
LOG.error("Page not found: %s", self.request.url)
LOG.info("Page not found: %s", self.request.url)
return self.error_response(404, _("Page not found"))

@forbidden_view_config()
Expand Down

0 comments on commit ad3b765

Please sign in to comment.