fccn / nau-richie-site-factory

Site factory to build NAU web sites based on https://github.com/openfun/richie
https://www.nau.edu.pt/
GNU Affero General Public License v3.0
0 stars 1 forks source link

Sentry on NAU Richie is raising error of any missing page http status 404 #220

Closed igobranco closed 5 months ago

igobranco commented 5 months ago

Any missing page on the NAU Richie site is being logged as a log error, so sentry is sending it has an error.

So, for example, a broken link not correct shared on Facebook is being crawled by Facebook bot, and is being reported by Sentry as an error.

In general a 404 is a warning and not an error.

We need to configure Django, on NAU Richie, to log a 404 as a warning and not as an error.

Image

igobranco commented 5 months ago

Possible solution could be disable the request.summary logger on Django with level error.

igobranco commented 5 months ago

This logging is being written by dockerflow package on https://github.com/mozilla-services/python-dockerflow/blob/0424734c268aea36312117335b92ea79bff2c8ee/src/dockerflow/django/middleware.py#L85-L90

igobranco commented 5 months ago

Pending deploy

igobranco commented 5 months ago

Generated a new NAU release, deployed in PROD.