Skip to content

Commit

Permalink
Improve restarting the consumer process to re-register when a Rabbit …
Browse files Browse the repository at this point in the history
…MQ queue is deleted. (#1592)
  • Loading branch information
yang-xiaodong committed Oct 11, 2024
1 parent d499a23 commit 0c3142c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DotNetCore.CAP/Internal/IConsumerRegister.Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ private void WriteLog(LogMessageEventArgs logmsg)
switch (logmsg.LogType)
{
case MqLogType.ConsumerCancelled:
_isHealthy = false;
_logger.LogWarning("RabbitMQ consumer cancelled. --> " + logmsg.Reason);
break;
case MqLogType.ConsumerRegistered:
Expand Down

0 comments on commit 0c3142c

Please sign in to comment.