-
Notifications
You must be signed in to change notification settings - Fork 1.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
Winston v3.0.0 rc1 hangs under stress when using file transport #1144
Comments
I just arrived here to report exactly this issue, but I see @juanda99 beat me to it. So yes, I can confirm this bug. |
It would be really helpful if you could reproduce this in the existing stress test: https://github.com/winstonjs/winston/blob/master/test/transports/file-stress.test.js |
Also occurring for me! |
Thanks folks. This is looking like a pretty large blocker – if you could reproduce it in the existing stress test that would be very helpful. |
@indexzero - Great to hear that it's a large blocker. I want to use WInstonjs in production within a week or two and I would love to start with v3 from the start, but if this problem persists I have to backport my (quite extensive) logging code to v2. So I would love to help out. I checked out the test-code, but I don't really know how to extend that with this problem. What I can do however is give you a small example with which you can reproduce this problem:
As commented in the last lines, the Can this help you find the issue? |
@indexzero - Any news on this one? |
@indexzero - Has there been any progress on this? I would love to help to resolve this one, but I'm unsure how else than providing the example code I did. Maybe if you give me some guidance I can be of any more help.. |
This looks related to my observation. First time with winston I implemented with 3.0.0-rc1 but soon found under long running regression tests that winston would stop logging without error (or I don't know how to expose the error). I've two File transports and Winston-elasticlogger transport configured. I finally reverted to 2.4 and so far, everything behaves as expected and keeps logging. |
This could be the same thing as that described in #1194. People using the |
Hi, I have some similar problem. When i'm writing log of configuration, winston stop writing log without error : I don't have daily-rotate-file.
|
I have the same problem. I've got a console and file logger configured, not using the daily rotate. After some amount of time, winston just simply stops writing to the log, both console and file. I wrap winston in a simple setup class, so I replaced it with just plain calls to console.log and everything logs just fine, for as long as I let it go. One thing that I notice. If I run the app with nodemon, everything seems to work ok. I'm having this issue when running under PM2 (or FOREVER, I've tried both). The fact that it logs properly, under both PM2 and forever, at least for a short time, leads me to believe it's something about winston, but that this point I'm not entirely sure. |
Earlier today I had a case where logging just went silent -- turns out I had an edge-case in one of my custom formats which would throw a A little while ago, I came across this report: (#1248) -- It If unexpected errors are quietly killing the logging, that could explain the symptoms described by @drventure and @juanda99 as well and why it is so hard to reliably reproduce! |
Many thanks for hunting that down! I'm still trying to verify but my suspicion is that that's exactly what's going on. I AM using a custom formatter, so I think I'll next look in that area. I'll keep you guys posted. |
@drventure Made a correction to my previous comment -- the initial |
Confirmed this was fixed against We can add it for you or if you'd like to make a PR that creates |
This will be released in |
I'm using a watcher that fires an event per directory found in ./materials folder.
I create some directories for debug:
When I ran my script It hangs except if I remove file transport and use just the console.
The text was updated successfully, but these errors were encountered: