Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower the report level of routine http errors in the Fog log #15363

Conversation

mansam
Copy link
Contributor

@mansam mansam commented Jun 13, 2017

The FogLogger was automatically reporting every Excon error (400+ status
code) as an ERROR level message, which was then getting mirrored without
context into the evm.log as an ERROR. The application already catches,
handles, and logs these occurrences with relevant context, so the automatic
instrumentation only needs to report the gritty details of these events
at the DEBUG level.

For example, OpenstackHandle's handled_list totally assumes that it will get 404s for normal reasons and outputs WARNs with relevant messages explaining the occurrence in the Fog log. However, because the instrumentation was automatically reporting every lack of success as an ERROR, you get a WARN and an ERROR for the same thing in the Fog log, and a confusing ERROR by itself for a thing that didn't actually fail in the EVM log.

Fixes the log spam reported in https://bugzilla.redhat.com/show_bug.cgi?id=1447664

The FogLogger was automatically reporting every Excon error (400+ status
code) as an ERROR level message, which was then getting mirrored without
context into the evm.log as an ERROR.  The application already catches,
handles, and logs these occurances with relevant context, so the automatic
instrumentation only needs to report the gritty details of these events
at the DEBUG level.
@miq-bot
Copy link
Member

miq-bot commented Jun 13, 2017

Checked commit mansam@4c16bb1 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍪

@chessbyte chessbyte self-assigned this Jun 14, 2017
@chessbyte chessbyte merged commit 4b28103 into ManageIQ:master Jul 6, 2017
@chessbyte chessbyte added this to the Sprint 64 Ending Jul 10, 2017 milestone Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants