michael-o commented on code in PR #161:
URL: https://github.com/apache/maven-resolver/pull/161#discussion_r845947122


##########
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/df/DfDependencyCollector.java:
##########
@@ -246,9 +246,12 @@ public CollectResult collectDependencies( 
RepositorySystemSession session, Colle
         }
 
         long time3 = System.nanoTime();
-        stats.put( "DefaultDependencyCollector.collectTime", time2 - time1 );
-        stats.put( "DefaultDependencyCollector.transformTime", time3 - time2 );
-        logger.debug( "Dependency collection stats {}", stats );
+        if ( logger.isDebugEnabled() )
+        {
+            stats.put( "BfDependencyCollector.collectTime", time2 - time1 );
+            stats.put( "BfDependencyCollector.transformTime", time3 - time2 );

Review Comment:
   Yes, you can easily enable with SLF4J Simple, if necessary



-- 
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: issues-unsubscr...@maven.apache.org

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

Reply via email to