eBay / ejmask

eJMask is a JVM-based masking library that provides an easy-to-use API for masking sensitive data in your Java applications. With eJMask, you can quickly mask sensitive information like personal information, credit card numbers, and more.
Apache License 2.0
10 stars 10 forks source link

Log stack trace for Exceptions #12

Closed vvijayaraman0822 closed 1 year ago

vvijayaraman0822 commented 1 year ago

Motivation

Logging the stack trace for an exception is important because it helps in troubleshooting and debugging the root cause of the problem. It identifies the point where the error occurred, the method that threw the error, and the execution sequence that led to the error.

ex.getMessage() will not have context in exceptions such as NullPointerException and StackOverflowError. These are exceptions with no messages.

Proposed Changes

Test Plan

Screenshots:

Difference between previous and current logging Screenshot 2023-10-27 at 12 12 48 PM

Build success Screenshot 2023-10-27 at 12 28 02 PM