Skip to content

Commit

Permalink
Log connection failure as warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper-d committed Jan 19, 2024
1 parent 199c242 commit 501e30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NATS.Client.Core/NatsConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ private async void ReconnectLoop()
{
if (url != null)
{
_logger.LogError(NatsLogEvents.Connection, ex, "Failed to connect NATS {Url}", url);
_logger.LogWarning(NatsLogEvents.Connection, ex, "Failed to connect NATS {Url}", url);
}

ReconnectFailed?.Invoke(this, url?.ToString() ?? string.Empty);
Expand Down

0 comments on commit 501e30e

Please sign in to comment.