Open jaczhao opened 7 years ago
You're right that we do have a Close method, and that close method could stop the mill goroutine fairly trivially. I'll get that fix out sometime soon, or you're welcome to send in a PR :)
one PR, please review it, Thanks
Experiencing the same issue . Thanks @jaczhao for the solution.
millrun goroutine leak.
I use zap to wrap lumberjack, my code is following
when I do testing, I got the following error:
I tried to used Close() method, but it still failed.
I read source code and fount that nowhere to close the logger.millCh, so this goroutine will live forever.