-
Notifications
You must be signed in to change notification settings - Fork 4
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
try catch error log stacktrace and continue #168
Comments
@rymsha any suggestions? has to be implemented? |
This is a documentation issue. The trick is to provide two arguments where second one is an exception instance:
@anatol-sialitski document it, please, since you implemented this improvement. |
So you're saying that if I do: log.debug(e); But if I do |
Yes, by the idea you should be able to log stacktrace if second parameter will be passed as an error/exception. |
What if I want to store the stacktrace in a variable and write it to a Enonic XP node so I can debug errors later? Still sure this is a documentation issue? |
You should never store error stack-traces in XP (imagine what might happen), if you intend to store them anywhere, write them to logs. |
Currently I know of no way to log a stacktrace and continue. Please document how, or make it possible ? :)
Related: https://discuss.enonic.com/t/catch-specific-java-errors-in-javascript/928/3
The text was updated successfully, but these errors were encountered: