You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the documentation, you can pass into rollbar.error an exception, a string, and an object. What I'd like to do is pass an exception and a string that's a simple human readable label. However, it seems like if I pass an exception into rollbar.error, the string is ignored and only the exception information is logged. I can pass an object in with meta data and get around this, but that seems counter to the documentation.
I'm currently trying with logger.error(result, 'error retrieving databases'); where results is an instance of Error.
The text was updated successfully, but these errors were encountered:
arb
changed the title
Confused About Basic Example
Confused About logger.error API
Jul 12, 2017
should be that we get the stack trace for the result error, but the message string should probably be added either to the description of the error or as part of the custom metadata. Right now it is just thrown away.
Per the documentation, you can pass into
rollbar.error
an exception, a string, and an object. What I'd like to do is pass an exception and a string that's a simple human readable label. However, it seems like if I pass an exception intorollbar.error
, the string is ignored and only the exception information is logged. I can pass an object in with meta data and get around this, but that seems counter to the documentation.I'm currently trying with
logger.error(result, 'error retrieving databases');
whereresults
is an instance ofError
.The text was updated successfully, but these errors were encountered: