Actions
Issue #2510
closeddjango logs warning when responding with 404
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.11.1
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Sprint 13
Quarter:
Description
Steps to reproduce:
- sync and publish the repo found here with default settings: https://repos.fedorapeople.org/repos/pulp/pulp/fixtures/rpm/
- curl -k https://localhost/pulp/repos/repos/pulp/pulp/fixtures/rpm/helloworld
And observe in the system log:
Jan 03 20:20:31 dev pulp[3152]: django.request:WARNING: Not Found: /var/www/pub/yum/https/repos/repos/pulp/pulp/fixtures/rpm/helloworld
A warning should not be logged in this case, because there is no indication of a problem or failure within pulp. This only happens when a client requests a file that doesn't exist.
Users have seen this behavior (and been confused by it) when yum tries to access a ".treeinfo" file that doesn't exist. This is normal behavior and does not indicate any kind of failure in pulp.
Actions
django.request log level changed to ERROR
django's normal behavior is to log at WARNING when it issues a 404 response to a client. That is not the behavior Pulp wants, because it does not indicate a failure in Pulp.
https://pulp.plan.io/issues/2510 fixes #2510