Skip to content
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

fix(debug): avoid printing trusted symbol in debug output #15267

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

vkarpov15
Copy link
Collaborator

Re: #15263

Summary

Right now trustedSymbol shows up in debug output, which can be extra confusing when debugging populate issues because populate adds trusted symbol by default:

Mongoose: groups.find({ key: { '$in': [ ObjectId("67b887650fca90b537952220"), ObjectId("67b887650fca90b537952224") ], [Symbol(mongoose#trustedSymbol)]: true }}, { skip: undefined, limit: undefined, perDocumentLimit: undefined })

This PR removes trustedSymbol from debug output.

Examples

@vkarpov15 vkarpov15 added this to the 8.10.2 milestone Feb 21, 2025
@vkarpov15 vkarpov15 merged commit 384b8e8 into master Feb 23, 2025
75 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15263 branch February 24, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants