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
Logging a MongoDB ObjectID directly prints binary buffer #611
Comments
you can always just use .toString().. would be great not to have to do that though |
@triccardi-systran how would we detect if it is this type? Suggests a larger failure of our serialization of custom Objects which has been a problem even with natives ( |
@indexzero I don't know how it could be fixed, maybe look at what other loggers do? |
The MongoError has in fact been fixed in mongodb driver 2.0.28 by mongodb-js/mongodb-core/pull/14. |
This seems to be caused by Modifying that function makes it work properly for me. Added this line in there to do the magic |
Is there any solution for this other than patching external lib as @kaetemi said (using latest release of winston)? I log MongoDB-stored object that has some
and for these I was trying to use rewriters/filters for that but with no luck (cannot reliably detect/rewrite these props) |
+1 using .toString() works but is extremely frustrating. any plans on fixing this? currently doing stuff like |
In |
Result:
This is possibly related to #500, although it was not fixed by it.
The text was updated successfully, but these errors were encountered: