-
Notifications
You must be signed in to change notification settings - Fork 50
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
How to format an error as Error? #754
Comments
Thanks @christian-schwaderer for opening the issue! Can you please also share the way you log errors? |
Sorry, I don't get what you mean exactly. |
Thanks @christian-schwaderer for clarification - I just wanted to make sure you call |
Thanks for that link. The information given there was, however, not entirely new to me. I knew that somehow I need to format my string as an
But that feels somewhat hacky. If this is really the way to go it might be a good idea to add that to the documentation with a few words of explanation why it should be done like this. I don't think I'm the first one to run into that problem. I did not find out how the manipulate the |
I see, thanks for letting me know @christian-schwaderer! Indeed, the workaround you are using seems to me as the only option for now (given also fact that adding |
My goal is that each time I call
logger.error
with whatever content an entry in Error Reporting is created.However, that doesn't work. Only some errors make it to the Error Reporting, some others appear well in the logs, but not in Error Reporting.
I've read the "Error Reporting" paragraph in the docs. But, still, I don't get it.
Error
object? Tried likeObject.assign(info, { message: new Error(info.message) });
- but without luck so far.service
andversion
? I've set a random string inservice
and leftversion
aside.Here's my complete config:
The text was updated successfully, but these errors were encountered: