Replies: 1 comment 2 replies
-
No, we don't want debug logging to raise errors. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment of creating this discussion,
Rails.logger
is being used in 8 files. Sinceraise
has been extensively used already, would it be OK for me to create a PR to replaceRails.logger
withraise
s?For example, it took us ages to find out that an admin created a customer via our admin panel, which seems to fail to trigger
#pay_customer
:pay/app/jobs/pay/customer_sync_job.rb
Line 6 in ec4e870
If
raise
was used in this part, it would make catching this error trivial. Also,CustomerSyncJob
seems too critical to not toraise
anything.What do you think? Agreed or not? If not, any suggestions to handle the
rescue
logic? Thanks! :)Beta Was this translation helpful? Give feedback.
All reactions