toolargetool
toolargetool copied to clipboard
Can we catch the exception and send debug info to us by RESTful ?
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.)
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.