Skip to content

Add backtrace to errors#328

Merged
maddymarkovitz merged 3 commits intoque-rb:masterfrom
trammel:add-backtrace-to-errors
Feb 21, 2022
Merged

Add backtrace to errors#328
maddymarkovitz merged 3 commits intoque-rb:masterfrom
trammel:add-backtrace-to-errors

Conversation

@trammel
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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