Connection Closed errors should include the exception obj
This commit is contained in:
@@ -86,7 +86,7 @@ namespace Discord.Audio
|
|||||||
ApiClient.Disconnected += async ex =>
|
ApiClient.Disconnected += async ex =>
|
||||||
{
|
{
|
||||||
if (ex != null)
|
if (ex != null)
|
||||||
await _audioLogger.WarningAsync($"Connection Closed: {ex.Message}").ConfigureAwait(false);
|
await _audioLogger.WarningAsync($"Connection Closed", ex).ConfigureAwait(false);
|
||||||
else
|
else
|
||||||
await _audioLogger.WarningAsync($"Connection Closed").ConfigureAwait(false);
|
await _audioLogger.WarningAsync($"Connection Closed").ConfigureAwait(false);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace Discord.Rpc
|
|||||||
{
|
{
|
||||||
if (ex != null)
|
if (ex != null)
|
||||||
{
|
{
|
||||||
await _rpcLogger.WarningAsync($"Connection Closed: {ex.Message}").ConfigureAwait(false);
|
await _rpcLogger.WarningAsync($"Connection Closed", ex).ConfigureAwait(false);
|
||||||
await StartReconnectAsync(ex).ConfigureAwait(false);
|
await StartReconnectAsync(ex).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ namespace Discord.WebSocket
|
|||||||
{
|
{
|
||||||
if (ex != null)
|
if (ex != null)
|
||||||
{
|
{
|
||||||
await _gatewayLogger.WarningAsync($"Connection Closed: {ex.Message}").ConfigureAwait(false);
|
await _gatewayLogger.WarningAsync($"Connection Closed", ex).ConfigureAwait(false);
|
||||||
await StartReconnectAsync(ex).ConfigureAwait(false);
|
await StartReconnectAsync(ex).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user