diff --git a/MareSynchronosServer/MareSynchronosServer/Throttling/SignalRLimitFilter.cs b/MareSynchronosServer/MareSynchronosServer/Throttling/SignalRLimitFilter.cs index b8cb9f7..a90cca2 100644 --- a/MareSynchronosServer/MareSynchronosServer/Throttling/SignalRLimitFilter.cs +++ b/MareSynchronosServer/MareSynchronosServer/Throttling/SignalRLimitFilter.cs @@ -94,6 +94,11 @@ public class SignalRLimitFilter : IHubFilter HubLifetimeContext context, Exception exception, Func next) { await DisconnectLimiterSemaphore.WaitAsync(); + if (exception != null) + { + logger.LogWarning(exception, "InitialException on OnDisconnectedAsync"); + } + try { await next(context, exception); @@ -101,7 +106,6 @@ public class SignalRLimitFilter : IHubFilter } catch (Exception e) { - logger.LogWarning(exception, "InitialException on OnDisconnectedAsync"); logger.LogWarning(e, "ThrownException on OnDisconnectedAsync"); } finally