toolargetool icon indicating copy to clipboard operation
toolargetool copied to clipboard

Can we catch the exception and send debug info to us by RESTful ?

Open luatnd opened this issue 5 years ago • 1 comments

Hi, Is there any way I can catch this exception? Got the debugging info. So that I can send debugging info to my own service (Slack hook, etc.)

luatnd avatar Aug 11 '20 03:08 luatnd

Hi @luatnd - yes you could do something like that, for sure. A previous contributor @friedenberg made a Logger interface which you could implement to output the debugging info in a different way:

https://github.com/guardian/toolargetool/blob/a17898eef20af540a89a7438b67bd60ee0fae943/toolargetool/src/main/java/com/gu/toolargetool/Logger.kt#L5-L12

You would need to ensure that data were handled in a secure way and only captured on debug builds to prevent any possible leakage of sensitive user data.

maxspencer avatar Jan 25 '21 16:01 maxspencer