-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Cannot Disable Logging - directory is always created #6307
Comments
I have gotten it implemented however the issue remains that the default logging of parse still creates a log dir
This is causing issues in my GAE environment as writing directories is not allowed, I have also specified in |
Strange behaviour, even when specifying an alternative logs directory name (other than null) parse still creates a logs folder as well as the other custom folder |
After some source code review Ive found a work around by setting Seems
|
+1 I'm using the following configuration: const api = new ParseServer({
databaseURI: mongoDSN,
cloud: './cloud/main.js',
allowClientClassCreation: false,
appId,
masterKey,
logsFolder: null,
verbose: false,
silent: false,
... Parse Server version: 3.10.0 |
Have you tried with |
Hi @davimacedo ! If I set Thanks |
Got it. This is something that can be really improved. Do you want to tackle this one? |
I spent a lot of time trying to figure out where the problem was but honestly I couldn't find it. If you can give me a clue maybe I could tackle this! |
If you set logsFolder to any other folder than not the default, does it work? I guess this option is only working through env vars. |
Yes! If I set logsFolder to test, then test folder is created. The problem
is with the null value! Always creates logs folder and start to log into
the files.
|
Although the server doesn't create the folder. Winston creates it internally I believe |
I thought the same thing but the question is Why if you set PARSE_SERVER_LOGS_FOLDER env var to null the folder is not created? |
The most likely solution is to remove the instruction to set Suggested change:
Anyone would like to pick this up? |
The server has 2 loggers. You have to disable both loggers to prevent a directory from being created and Lines 28 to 30 in 5fa58fe
Please create a new issue if the problem still exists. |
Im trying to integrate the default winston logger with the Google Cloud stack driver adapter but cant figure out how to integrate it
Do you guys have any pointers on this library ?
https://github.com/googleapis/nodejs-logging-winston
trying this at the moment but its not working
Similar issues:
#2501
#2550
#1904
The text was updated successfully, but these errors were encountered: