Skip to content

Commit

Permalink
Fixed the health check could not get the status correctly when Rabbit…
Browse files Browse the repository at this point in the history
…MQ lost connection and quickly recovered. #1140
  • Loading branch information
yang-xiaodong committed Jun 8, 2022
1 parent 432500f commit 7a7a1bd
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 @@ -292,6 +292,7 @@ private void WriteLog(object sender, LogMessageEventArgs logmsg)
_logger.LogWarning("RabbitMQ consumer cancelled. --> " + logmsg.Reason);
break;
case MqLogType.ConsumerRegistered:
_isHealthy = true;
_logger.LogInformation("RabbitMQ consumer registered. --> " + logmsg.Reason);
break;
case MqLogType.ConsumerUnregistered:
Expand Down

0 comments on commit 7a7a1bd

Please sign in to comment.