shwstppr commented on code in PR #8674:
URL: https://github.com/apache/cloudstack/pull/8674#discussion_r1627564767
##########
plugins/event-bus/rabbitmq/src/main/java/org/apache/cloudstack/mom/rabbitmq/RabbitMQEventBus.java:
##########
@@ -185,11 +185,14 @@ public static void setRetryInterval(Integer
retryInterval) {
*/
@Override
public UUID subscribe(EventTopic topic, EventSubscriber subscriber) throws
EventBusException {
-
if (subscriber == null || topic == null) {
throw new EventBusException("Invalid EventSubscriber/EventTopic
object passed.");
}
+ if (logger.isDebugEnabled()) {
+ logger.debug("subscribing '{}' to events of type '{}' from '{}'",
subscriber.toString(), topic.getEventType(), topic.getEventSource());
+ }
Review Comment:
```suggestion
logger.debug("subscribing '{}' to events of type '{}' from '{}'",
subscriber.toString(), topic.getEventType(), topic.getEventSource());
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]