Open tycooon opened 1 year ago
The original version is skipping the log if the exception is rescued by Rails. I decided to still log those exceptions but with lower level (debug instead of fatal). I think this is still better than the current behavior.
debug
fatal
Looks like the rescue_response? code was added as of Rails 7, how will this work with Rails 5 & 6?
rescue_response?
You are correct. I guess I can throw in a wrapper.respond_to?(:rescue_response?) check if that would be OK.
wrapper.respond_to?(:rescue_response?)
The original version is skipping the log if the exception is rescued by Rails. I decided to still log those exceptions but with lower level (
debug
instead offatal
). I think this is still better than the current behavior.