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

[HAMMER] log_backtrace won't print backtrace for MiqException errors #19229

Conversation

jrafanie
Copy link
Member

See: https://github.com/ManageIQ/manageiq-gems-pending/blob/hammer/lib/gems/pending/util/vmdb-logger.rb#L106

This will still print as an ERROR level but the backtrace will not be printed to the log as this is a known
error condition where the backtrace is not needed.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1729166

Note, embedded ansible was converted to use runner starting in ivanchuk, therefore this is a hammer only change.

See: #18687

See: https://github.com/ManageIQ/manageiq-gems-pending/blob/hammer/lib/gems/pending/util/vmdb-logger.rb#L106

This will still print as an ERROR level but the backtrace will not be printed to the log as this is a known
error condition where the backtrace is not needed.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1729166

Note, embedded ansible was converted to use runner starting in ivanchuk, therefore this is a hammer only change.

See: ManageIQ#18687
@jrafanie jrafanie requested a review from NickLaMuro August 29, 2019 20:35
@jrafanie jrafanie changed the title log_backtrace won't print backtrace for MiqException errors [HAMMER] log_backtrace won't print backtrace for MiqException errors Aug 29, 2019
@miq-bot
Copy link
Member

miq-bot commented Aug 29, 2019

Checked commit jrafanie@1b4010f with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Member

@NickLaMuro NickLaMuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting in the time on this. I with out a way to test at the moment, it seems to make sense to me.

I also have no skin in the game on whether or not this is the preferred solution for all parties, but it should at least work as described by LJ.

@Fryguy
Copy link
Member

Fryguy commented Aug 30, 2019

@simaishi Please merge.

@Fryguy Fryguy added the bug label Aug 30, 2019
@simaishi simaishi merged commit 3def69b into ManageIQ:hammer Oct 4, 2019
@simaishi simaishi added this to the Sprint 122 Ending Oct 14, 2019 milestone Oct 4, 2019
@jrafanie jrafanie deleted the hammer_do_not_log_backtrace_of_expected_exception branch July 15, 2022 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants