-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
cannot disable cloud code logs #2855
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
Comments
hi @benishak The key is I'll look at where to add this in the documentation. I'm going to close this, but re-open if it doesn't solve for you. |
and now that I've looked into it a little more, here's a better answer: Winston is expecting logLevel, but parse-server uses just level. Confusing :(. So if you want to use the default logger, which you are, and you just want to adjust the log level, you can do it by simply setting the |
this doesn't work I tried
and
actually I got an error when not defining the module |
@benishak if you use
note that it is Also if you replace your whole it should also work. I have tested both. My response to you yesterday was incorrect in that i told you that the top level key was |
Thanks for this.. it was driving me mad seeing the data for each cloud function when I wanted to see it for one particular function. |
@acinader this is a pretty old issue but the logLevel at the top level of the config is good and important enough information to put on the front page |
You can pass it in the constructor: https://github.com/parse-community/parse-server/blob/master/src/ParseServer.js#L103 |
I meant putting it on the README. Sorry for the ambiguity. |
There's nothing that prevents you from doing it |
Env
Parse Server 2.2.22
Problem
I want to disable these logs
I try this
and try also this
console.info = function(){}
but these logs still appear in the console
pm2 logs
The text was updated successfully, but these errors were encountered: