-
Notifications
You must be signed in to change notification settings - Fork 23
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
Crash debug logging using loglevel library #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual code changes look good, however I noticed you updated the package-lock.json file to use lockfileVersion 2. I believe this version 2 format requires a newer version of npm. Introducing the loglevel library shouldn't change the minimum version of npm required to run the node, right? So to avoid affecting compatibility with older versions of npm, I'd prefer to have package-lock.json reverted back to the previous lockfileVersion 1 format. Unless you feel strongly about having it be lockfileVersion 2 for some reason.
Tested myself these for 8 days at least. So far no issues. @bt-cryptomancer - lockfileVersion 2 requires npm 7 at least and is backward compatible with version 1. But if we want to support npm 5 or 6, then we need to keep lockfileVersion 1. I have been using |
Yeah, I think it just automatically updated the lockfile version when I did npm install . Don't think it changes node version compatibility. I think it's fine to just have people use the newer version of npm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I did a bit of reading about lockfileVersion 2 and noticed that it is backwards compatible with npm 6. I guess it doesn't really matter which version we use, and the underlying Node.js compatibility doesn't change either. So if you guys have no concerns about it, then I'm fine with it too.
Happy to approve this PR now.
Added config parameter to tweak log level to help in crash scenarios.