Skip to content

Conversation

@grvgoel81
Copy link
Contributor

Motivation and Context

  • Add sentry for error logging and capturing useful information.

Jira Link: https://toruslabs.atlassian.net/browse/PD-3897

Description

  • Add sentry for error logging and capturing useful information.

How has this been tested?

  • By using test exceptions log.

Screenshots (if appropriate):

Screenshot 2024-09-16 at 12 50 41 PM

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: Gaurav Goel <gaurav@tor.us>
Common.padLeft(publicKeyUnprefixed, '0', 128);
} else {
throw new TorusUtilError("Invalid public key size");
throw new TorusUtilError("Invalid public key size", TorusUtils.getClientId());
Copy link
Contributor

@metalurgical metalurgical Sep 16, 2024

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.

@metalurgical
Copy link
Contributor

metalurgical commented Sep 16, 2024

@grvgoel81 Did you check that we can keep it the same way as here for swift as well?

@grvgoel81
Copy link
Contributor Author

@grvgoel81 Did you check that we can keep it the same way as here for swift as well?

Yes it is. Reference: MetaMask/torus-utils-swift#107

grvgoel81 and others added 3 commits September 16, 2024 15:22
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
Signed-off-by: Gaurav Goel <gaurav@tor.us>
this.message = message;
}

private final String message;
Copy link
Contributor

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 <gaurav@tor.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants