-
Notifications
You must be signed in to change notification settings - Fork 106
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
Do not clutter the logs with warnings in prod environment #1109
Comments
Datastore in Python emits this warning too so whatever we end up doing there should probably be consistency across the board. |
I am not familiar with Python |
It looks like the doc is not up to date. The filter method can now take objects. You can look at the tests for an example. That being said I think using the legacy way (with and without operator) should still be supported and should not log a warning at least in production mode. |
Using PropertyFilter eliminates the warning.
|
@efossvold read my initial message. I said I don't think we should be forced to do that for simple case because there is no point. Thanks for trying to help though. |
The following code
will print a warning:
First I don't think there should be any warning in a prod environment.
One way js libraries check for prod environemnt is to check if the
NODE_ENV
environment variable is set toproduction
- see the express docs for ref.Also my understanding is that the warning is there because of nested composite filters. I don't think there should be any warnings in a simple case, that is:
should probably not generate a warning even in dev env.
/cc @danieljbruce
The text was updated successfully, but these errors were encountered: