-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add sentry for error logging and information. #32
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Gaurav Goel <[email protected]>
@@ -122,7 +125,7 @@ public static String[] getPublicKeyCoords(@NotNull String pubKey) throws TorusUt | |||
if (publicKeyUnprefixed.length() <= 128) { | |||
Common.padLeft(publicKeyUnprefixed, '0', 128); | |||
} else { | |||
throw new TorusUtilError("Invalid public key size"); | |||
throw new TorusUtilError("Invalid public key size", TorusUtils.getClientId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you can promote this to a full error, then it can sit will all the other errors. Will be easy to keep track of then, similary for the others like this.
@grvgoel81 Did you check that we can keep it the same way as here for swift as well? |
Yes it is. Reference: torusresearch/torus-utils-swift#107 |
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
Signed-off-by: Gaurav Goel <[email protected]>
this.message = message; | ||
} | ||
|
||
private final String message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be unused and can be removed, not so?
Signed-off-by: Gaurav Goel <[email protected]>
Motivation and Context
Jira Link: https://toruslabs.atlassian.net/browse/PD-3897
Description
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: