mirror of
https://github.com/eventials/goevents.git
synced 2025-04-26 13:48:59 +08:00
(debug): Add debug information for priority check
- Added a debug log statement in the checkPriorityMessages function - The debug log outputs when a higher priority consumer has messages in queue, skipping the current consumer
This commit is contained in:
parent
f1b607259f
commit
3ea7599c2c
@ -454,6 +454,7 @@ func checkPriorityMessages(consumers []*consumer, currentConsumer *consumer) boo
|
|||||||
|
|
||||||
// If any higher priority consumer has messages to consume, then the currentConsumer should not consume.
|
// If any higher priority consumer has messages to consume, then the currentConsumer should not consume.
|
||||||
if len(consumer.qos) > 0 {
|
if len(consumer.qos) > 0 {
|
||||||
|
logrus.Debugf("Higher priority consumer %s has messages to consume, skipping current consumer %s", consumer.config.QueueUrl, currentConsumer.config.QueueUrl)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user