Tsz-wo Sze created RATIS-2160:
---------------------------------

             Summary: MetricRegistriesLoader should not print INFO message in 
CLI
                 Key: RATIS-2160
                 URL: https://issues.apache.org/jira/browse/RATIS-2160
             Project: Ratis
          Issue Type: Bug
          Components: shell
            Reporter: Tsz-wo Sze


MetricRegistriesLoader uses MetricRegistries log to print the following INFO 
message.
{code}
2024-09-19 10:56:43 INFO  MetricRegistries:64 - Loaded MetricRegistries class 
org.apache.ratis.metrics.impl.MetricRegistriesImpl
{code}
Note that "MetricRegistries:64" is very misleading since 64 actually is the 
line 64 in MetricRegistriesLoader, not MetricRegistries.
{code}
//line 64 in MetricRegistriesLoader
      LOG.info("Loaded MetricRegistries " + impl.getClass());
{code}

When there are multiple implementations, it will print the following WARN 
message instead.
{code}
[main] WARN org.apache.ratis.metrics.MetricRegistries - Found multiple 
MetricRegistries implementations: class 
org.apache.ratis.metrics.impl.MetricRegistriesImpl, class 
org.apache.ratis.metrics.dropwizard3.Dm3MetricRegistriesImpl. Using first found 
implementation: org.apache.ratis.metrics.impl.MetricRegistriesImpl@4d1b0d2a
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to