Exception Stack Trace field showing namespace in the log entry instead of stack trace #366
Unanswered
adityavgpl
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hi @adityavgpl - that might be a platform limitation with managed packages, some details about managed package code is often obfuscated like this. You could try to get around the issue by setting the exception stack trace field yourself, something like this: Exception myException; // assuming you have an exception variable called myException
Logger.error('Something broke', myException)?.getLogEntryEvent().ExceptionStackTrace__c = myException.getStackTraceString(); I'm not 100% sure that this approach will work, but it's definitely worth trying. Let me know if this ends up showing the correct stack trace. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
In my org I am using Nebula's managed package version. I am using it to log errors in my own managed package with namespace 'DeltaLKU'. But here the problem is I am not getting the exception stack trace in the log entry, instead of stack trace its showing namespace in brackets like (DeltaLKU)

Can any one help me resolve this
@jongpie do you have any suggestion for resolving this ? do we have some method to set just the stack trace string in the log entry, something like for example
setStackTrace
similar tosetExceptionDetails
Beta Was this translation helpful? Give feedback.
All reactions