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
When doing a logrus.Fatal or logrus.Panic, it would be good if an async hook got flushed. With Fatal, this is doable because you can use logrus.RegisterExitHandler to call Flush. But you can't do that for Panic. Is it possible to get a Panic out with an async hook?
I'm thinking maybe Fire should ignore hook.asynchronous for the Panic level (and honestly maybe for the Fatal level too, so you don't have to hook up a Flush).
The text was updated successfully, but these errors were encountered:
@glasser thanks for the snippet. I also wrapped your final shutdown flush in a timeout of its own (so that the wg.Done() of the underlying async hook doesn't wait forever).
When doing a logrus.Fatal or logrus.Panic, it would be good if an async hook got flushed. With Fatal, this is doable because you can use logrus.RegisterExitHandler to call Flush. But you can't do that for Panic. Is it possible to get a Panic out with an async hook?
I'm thinking maybe Fire should ignore hook.asynchronous for the Panic level (and honestly maybe for the Fatal level too, so you don't have to hook up a Flush).
The text was updated successfully, but these errors were encountered: