box-java-sdk
box-java-sdk copied to clipboard
Add logging of BoxAPIException.getResponse()
The requests are already logged: https://github.com/box/box-java-sdk/blob/05224c433d2a101a01959644674153df9542b711/src/main/java/com/box/sdk/BoxAPIRequest.java#L714
It would be very helpful when debugging to also have the error responses logged.
There should be a way to configure this on or off.
There would need to be a way to pass in an optional filter to remove PII from the exception text.
Hi @jimshowalter ,
Thanks for submitting this Issue! I've added this feature to our internal backlog.
About the PII filter you would see that as a function that accepts String and returns String.
@antusus