Change JsonExceptionMappers to log JSON processing errors at WARN instead of DEBUG level #519
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
JsonExceptionMappers#toResponse
logs the default "Unable to process JSON" message forJsonProcessingException
atDEBUG
level. This should probably beWARN
by default, so that it is easier to find in logs.The background on this issue is that we had a web application making an HTTP POST to a back-end service with invalid JSON. The back-end service was (correctly) returning a
400 Bad Request
response, but the web application (for whatever reason) was ignoring the response code (obviously not good behavior). So, the only reason we found the problem was by accident, because we had the logging on the back-end service set toDEBUG
level while diagnosing another problem. Changing the default log level toWARN
would have made things obvious a long time ago.The text was updated successfully, but these errors were encountered: