-
Notifications
You must be signed in to change notification settings - Fork 945
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
Upgrade Winston #1128
Upgrade Winston #1128
Conversation
I think this should be good to go, let me know if you have any other questions on it! |
Thank you! Will release a new version today. |
@kibertoad still waiting :) |
ouch. will do it right now, thank you for the ping. |
Released in 4.0.3 |
@kibertoad thanks,
|
Looks like it is coming as a transitive dependency from cliff, so we'd need to get rid of that too. |
@kibertoad and broadway |
pretty sure we removed broadway already, is it coming as transitive from somewhere too? |
@kibertoad as you may see in second warning above |
yeah, looks like flatiron is bringing it |
A bit deeper: #1077 (comment) @MatrixFrog maybe you could solve this |
Well I can certainly try. The hardest part might be getting package owners to respond and merge stuff. Or maybe it's easier to just fork things as needed. |
I suppose if @kibertoad will change dependency -> would be better just to fork: |
yeah, I'm happy to change to forks |
@MatrixFrog This seems to change in the output from With forever v4.0.2, I get output like this:
With forever v4.0.3, I get output like this:
That |
I see that too on my machine (Ubuntu 21.10). Hopefully I'll have some time to look into it this week. |
It looks like the Quick fix might be to switch 'data' to 'info' at: https://github.com/foreversd/forever/blob/master/lib/forever/cli.js#L433 though of course you still might have to update your regex :( |
Thanks @MatrixFrog, I'm just a user of forever and forever-service, and for now I have pinned forever to 4.0.2, but I'll open an issue on forever-service and reference these comments. |
filed winstonjs/winston#2053 -- I imagine the fix would be pretty easy if I was a little more familiar with the internals of Winston and its related packages. |
Proposed fix is out: winstonjs/logform#135 |
Thanks for submitting the Winston PR, would be good to see the issue fixed upstream. Just wondering though... is it not the responsibility of forever to specify the log levels it wants to be available before trying to log with those levels? Would a quick update to the |
btw, I have added a +1 to the PR, though I did also wonder about the fix... that code has seemingly been in use for 4 years and nobody else has raised this as an issue, and the winston readme also states that the default value for the I should point out that I am really not a javascript developer, so everything I say or suggest here should be taken with a healthy pinch of salt. |
good point, i guess let's see what they say, and in the meantime yes it probably makes sense to pass the cli.levels in forever |
Proposed fix on the |
Didn't really test this other than running
npm run test
; let me know if there's anything else I should try out.