-
Notifications
You must be signed in to change notification settings - Fork 36
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
[BUG] Logs folder automatically created #207
Comments
hi @Francois-BellegardeOSF - how does this impact you? from my current POV you are right but I fail to see the actual issue that this is causing |
fair point, understanding it now :) |
fixing the folder creation will need a rewrite of how we start logging. Right now it's simply started upon requiring/loading Util.js. I don't think we'll tackle that before the next release but potentially in a patch soon after the read-only dir issue is a problem that needs sorting inside of winston, which is the external module we use for logging |
finally tackling this ticket to then fix #969 afterwards ;-) |
Closed by #971. |
@Francois-BellegardeOSF quick note on how I tackled this: the access issue wasn't touched buy I simply made sure that commands that don't require a log file simply don't get one anymore, regardless of the folder you are in. To avoid log files all together for, I suppose, other reasons, you can use --noLogFile from 5.1 on. |
Is there an existing issue for this?
Current Behavior
Whenever we run
mcdev
, even without parameters, a 'logs' folder is created.Expected Behavior
A logs folder should only be created if something actually happens or is actually written.
I would also think that this log folders makes sense only in an initialized project.
Steps To Reproduce
npm i -g mcdev
mcdev
Even running
mcdev --version
creates a 'logs' folder.Version
3.1.3
Environment
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: