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

Print full stack trace of error in BatchItemProcessingJob.rescue_from #142

Closed
afred opened this issue Aug 21, 2019 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@afred
Copy link
Member

afred commented Aug 21, 2019

Because: right now it has the following behavior...

  1. Save the error message to hyrax_batch_items.error field.
  2. If you are in "development" environment, tack on the stack trace.

This has the effect of being to expose the stack trace through the web UI when developing.

But this falls short when you are debugging in a "production" env (i.e. on a staging server). You want to see the stack trace, but you don't necessarily want it exposed in the UI, nor do you want to switch to "development" rails environment.

Done when: full stack trace is sent to STDERR

@afred afred added the duplicate This issue or pull request already exists label Sep 9, 2019
@afred
Copy link
Member Author

afred commented Sep 9, 2019

Duplicate of #131

@afred afred closed this as completed Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant