AHeise commented on a change in pull request #11195: [FLINK-16222][runtime] Use 
plugins mechanism for initializing MetricReporters
URL: https://github.com/apache/flink/pull/11195#discussion_r388344724
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/ReporterSetup.java
 ##########
 @@ -120,55 +124,37 @@ public static ReporterSetup forReporter(String 
reporterName, MetricConfig metric
        }
 
        private static ReporterSetup createReporterSetup(String reporterName, 
MetricConfig metricConfig, MetricReporter reporter) {
-               LOG.info("Configuring {} with {}.", reporterName, metricConfig);
+               LOG.debug("Configuring {} with {}.", reporterName, 
metricConfig);
                reporter.open(metricConfig);
 
                return new ReporterSetup(reporterName, metricConfig, reporter);
        }
 
-       public static List<ReporterSetup> fromConfiguration(final Configuration 
configuration) {
+       public static List<ReporterSetup> fromConfiguration(final Configuration 
configuration, final PluginManager pluginManager) {
+               LOG.debug("Initializing Reporters from Configuration: {}", 
configuration);
                String includedReportersString = 
configuration.getString(MetricOptions.REPORTERS_LIST, "");
-               Set<String> includedReporters = 
reporterListPattern.splitAsStream(includedReportersString)
 
 Review comment:
   👍 to split up refactoring from actual commit. But in general also 👍 to 
refactorings.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to