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 be debug level is making sense. 



-- 
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]

Reply via email to