You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that log's underlying io.Writer is *mpb.Progress, fix would be: don't call log after (*mpb.Progress).Wait(). To understand why ask yourself a question: what a logger should do when underlying io.Writer returns an error?
Sorry, but if I substitite "github.com/sirupsen/logrus" by builtin "log" package (as it was in your original example) - then I don't see such error message and this is why I opened the ticket. I expected that behaviour should be the same. Or not?
Could you please advise how to restore logger after p.Wait? I changed it by commpad log.SetOutput(p) and in my case the program is continue after p.Wait statement and do some other things.
Hello.
I have took this code from example and substitite standard logger to logrus but if failes with message:
Failed to write to log, *mpb.Progress instance can't be reused after *mpb.Progress.Wait()
could you please suggest how to fix this?
The text was updated successfully, but these errors were encountered: