Skip to content

Commit

Permalink
Change ManualClose on Channel/Connection log to Debug level (was Info).
Browse files Browse the repository at this point in the history
  • Loading branch information
houseofcat committed Apr 24, 2024
1 parent 6dcb87b commit 71b5e69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/HouseofCat.RabbitMQ/Pools/ChannelHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ public async Task<bool> BuildRabbitMQChannelAsync(int autoRecoveryDelay = 1000,

protected virtual void ChannelClose(object sender, ShutdownEventArgs e)
{
_logger.LogInformation(e.ReplyText);
if (e.ReplyCode == 200)
{ _logger.LogDebug(e.ReplyText); }
else
{ _logger.LogWarning(e.ReplyText); }

Closed = true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/HouseofCat.RabbitMQ/Pools/ConnectionHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void AssignConnection(IConnection connection)
protected virtual void ConnectionClosed(object sender, ShutdownEventArgs e)
{
if (e.ReplyCode == 200)
{ _logger.LogInformation(e.ReplyText); }
{ _logger.LogDebug(e.ReplyText); }
else
{ _logger.LogWarning(e.ReplyText); }

Expand Down

0 comments on commit 71b5e69

Please sign in to comment.