Open sawadashota opened 2 years ago
I even think that we could log these as level info?
Or level warning is reasonable I think. Another line for this request logged as warning.
oathkeeper_1 | time=2022-01-04T08:30:06Z level=warning msg=Access request denied audience=application error=map[debug: message:Requested url does not match any rules reason: status:Not Found status_code:404] granted=false http_host=localhost:4455 http_method=GET http_url=http://localhost:4455/ http_user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 service_name=ORY Oathkeeper service_version=master
👍
Hello, I have the same issue/want. Do you have an idea of when this would be released?
Preflight checklist
Describe the bug
Request error logging for 4xx HTTP status (ex. 404 Not Found) logs as error. Handlers in oathkeeper writes logs this as warning but herodot writes logs as error. If we consider error log is action required, it would be warn level when 4xx HTTP status. https://github.com/ory/herodot/blob/4f8e0125bb42446c328ac4bcec941f70ce538c3d/error_reporter.go?_pjax=%23js-repo-pjax-container%3Afirst-of-type%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%3Afirst-of-type%2C%20%5Bdata-pjax-container%5D%3Afirst-of-type#L24
Reproducing the bug
docker-compose up
http://localhost:4455/
level=error
although 404 Not Found status.Relevant log output
Relevant configuration
Version
master
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Docker
Additional Context
No response