mattisonchao commented on code in PR #22854:
URL: https://github.com/apache/pulsar/pull/22854#discussion_r1665793987


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java:
##########
@@ -585,19 +585,28 @@ private <T> CompletableFuture<Consumer<T>> 
patternTopicSubscribeAsync(ConsumerCo
         lookup.getTopicsUnderNamespace(namespaceName, subscriptionMode, regex, 
null)
             .thenAccept(getTopicsResult -> {
                 if (log.isDebugEnabled()) {
-                    log.debug("Get topics under namespace {}, topics.size: {},"
-                                    + " topicsHash: {}, changed: {}, filtered: 
{}",
+                    log.debug("Pattern consumer [{}] get topics under 
namespace {}, topics.size: {},"
+                                    + " topicsHash: {}, changed: {}, filtered: 
{}", conf.getSubscriptionName(),
                             namespaceName, getTopicsResult.getTopics().size(), 
getTopicsResult.getTopicsHash(),
                             getTopicsResult.isChanged(), 
getTopicsResult.isFiltered());
                     getTopicsResult.getTopics().forEach(topicName ->
-                        log.debug("Get topics under namespace {}, topic: {}", 
namespaceName, topicName));
+                        log.debug("Pattern consumer [{}] get topics under 
namespace {}, topic: {}",
+                                conf.getSubscriptionName(), namespaceName, 
topicName));
                 }
 
                 List<String> topicsList = getTopicsResult.getTopics();
                 if (!getTopicsResult.isFiltered()) {
                    topicsList = 
TopicList.filterTopics(getTopicsResult.getTopics(), pattern);
                 }
                 conf.getTopicNames().addAll(topicsList);
+
+                if (log.isInfoEnabled()) {

Review Comment:
   It might make sense to use the debug level.



-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to