-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error logging is broken, or unintuitive #774
Comments
I think that Error is not being detected as metadata. I've also noticed this behaviour with big objects, not only Error. |
I think it's related to #280. Should be reopened. |
Yes, as it was not fixed @indexzero please comment, as this is critical 🔥 |
This is not related to #280. It's something else which happens to have the same symptom. |
is there any update @indexzero ? |
@nijikokun I hope they merge #777. Seems to be a fix. |
Duplicate of #745. Locking this issue as a point of process for duplicate issues. |
I have been trying to re-create the same result as doing a
throw err
for the past thirty minutes with zero results. I've read the code, it looks as though should the meta object contain the exception (error object) it will return the same stack. Wrong. It does not.The top, is the
global.log.error(err)
, the bottom is thethrow err
, wow, look at how much more information is displayed, not to mention you even get the error and stack from thethrow err
:Here is the (full) code:
I have also tried:
At least using that I get... the error message, that's it.
How do you log
new Error
objects properly? It is a mystery at this point, throwing them seems to be my best option, and that makes me feel extremely dirty.The text was updated successfully, but these errors were encountered: