diff --git a/Helpers/DiscordSink.cs b/Helpers/DiscordSink.cs index a7a3042..35d0a6e 100644 --- a/Helpers/DiscordSink.cs +++ b/Helpers/DiscordSink.cs @@ -19,6 +19,11 @@ public DiscordSink(ITextFormatter textFormatter) public async void Emit(LogEvent logEvent) { + // wait for exceptions to propagate + // TODO(erisa): find a better way to do this + if (logEvent.Exception is not null ) + await Task.Delay(100); + if (logEvent is null) throw new ArgumentNullException(nameof(logEvent)); lock (_syncRoot) {