-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
There is a bug if maxLogFiles suffer with d #6426
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
Nice catch! The issue is here it shouldn't use objectParser but one for number and strings. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
According to documentation for maxLogFiles:
I don't think 'd' matters here anyway because both imply the same thing. |
Up to 2 files can be created each day, one for |
Hi @dplewis, Yes, I understand that 2 files are created. But my point was do we really need 'd' at all. When you give:
Am I wrong about this? |
🎉 This change has been released in version 7.3.0-alpha.5 |
🎉 This change has been released in version 7.3.0-beta.1 |
🎉 This change has been released in version 7.3.0 |
Hello guys,
I test my app with config :
--appId xxx --masterKey xxx --databaseURI mongodb://xxx --maxLogFiles 20
It's right.
but,if I write this like :
--appId xxx --masterKey xxx --databaseURI mongodb://xxx --maxLogFiles 20d
It's wrong.
undefined:1
20d
^
SyntaxError: Unexpected token d in JSON at position 2
I find the code in follow file.
./lib/Options/parsers.js
function objectParser(opt) {
if (typeof opt == 'object') {
return opt;
}
return JSON.parse(opt);
}
I hope can fix it,Thank you.
The text was updated successfully, but these errors were encountered: