You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we don't log our JSON responses as that would be crazy. But I think that in the case of 422s (object failed validation) we should log the errors so that we have an idea of what happened.
We can do this with an ErrorResponder that checks has_errors? (part of ActionController::Responder) and if there are any, log resource.errors.full_messages.to_sentence with Rails.logger.
The text was updated successfully, but these errors were encountered:
Currently we don't log our JSON responses as that would be crazy. But I think that in the case of 422s (object failed validation) we should log the errors so that we have an idea of what happened.
We can do this with an ErrorResponder that checks
has_errors?
(part ofActionController::Responder
) and if there are any, logresource.errors.full_messages.to_sentence
withRails.logger
.The text was updated successfully, but these errors were encountered: