box-java-sdk icon indicating copy to clipboard operation
box-java-sdk copied to clipboard

Add logging of BoxAPIException.getResponse()

Open jimshowalter opened this issue 3 years ago • 1 comments

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.

jimshowalter avatar May 13 '22 18:05 jimshowalter

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

antusus avatar May 18 '22 11:05 antusus