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

Add backtrace to errors #328

Merged
merged 3 commits into from
Feb 21, 2022

Conversation

trammel
Copy link

@trammel trammel commented Jan 25, 2022

We were having issues where jobs were failing, but the error ArgumentError wasn't providing much information about where the problem was occurring.

This change adds a backtrace to the error logs, and also changes the other instance logging of the backtrace to be a bit more paranoid, in that the backtrace method may return a nil or an array.

I'd suggest a squash merge of these commits, if that's OK.

To better debug failing jobs, this adds extra information to the error logs.
error.cause isn't producing any valuable output, so removing it from the logs.
Copy link
Member

@ZimbiX ZimbiX left a comment

Choose a reason for hiding this comment

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

Good idea; I've had to open up the jobs table many times to look at the backtrace. Thanks!

Copy link
Contributor

@oeoeaio oeoeaio left a comment

Choose a reason for hiding this comment

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

LGTM

@maddymarkovitz maddymarkovitz merged commit a0b9d59 into que-rb:master Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants