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

Added warning msg when options.lean is falsey #155

Merged
merged 2 commits into from
Dec 20, 2016
Merged

Added warning msg when options.lean is falsey #155

merged 2 commits into from
Dec 20, 2016

Conversation

eddyystop
Copy link
Contributor

  • Tell us about the problem your pull request is solving.

People are told on #help they have to configure Mongoose with { lean: true } with some frequency. Hours are lost on this problem. See #help jojobyte posting first Dec 18 2:42am and finding an answer 7:26pm.

Supposedly { lean: true } is either not in or not prominent in the docs. Displaying a console message might help even when people don't read the docs.

  • Are there any open issues that are related to this?

No.

  • Is this PR dependent on PRs in other repos?

Yes.

Other Information

I believe Sequelize has a similar issue. I assume I can made a similar PR for it.

@eddyystop eddyystop closed this Dec 19, 2016
@eddyystop eddyystop reopened this Dec 19, 2016
@eddyystop eddyystop changed the title Added warmning msg on options.lean falsey Added warning msg when options.lean is falsey Dec 19, 2016
@marshallswain
Copy link
Member

:shipit:

@daffl
Copy link
Member

daffl commented Dec 19, 2016

I'd still like to figure out a good way to send deprecation warnings. Plain console.log without an option to disable them makes production app logs pretty noisy.

@eddyystop
Copy link
Contributor Author

This msg is suppressed in production mode.

@eddyystop eddyystop merged commit bf93048 into master Dec 20, 2016
@eddyystop eddyystop deleted the lean-msg branch December 20, 2016 01:23
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.

3 participants