Attila Doroszlai created HDDS-10405:
---------------------------------------
Summary: ozone admin has hard-coded info loglevel
Key: HDDS-10405
URL: https://issues.apache.org/jira/browse/HDDS-10405
Project: Apache Ozone
Issue Type: Bug
Components: Ozone CLI
Reporter: Attila Doroszlai
Assignee: Attila Doroszlai
Root log level for {{ozone admin}} commands cannot be set via config or
environment variables, because {{OzoneAdmin}} has hard-coded settings:
{code:title=https://github.com/apache/ozone/blob/652b9bcc0a1ec2ada72c91908decda26979e28a6/hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/cli/OzoneAdmin.java#L77-L85}
public static void main(String[] argv) {
LogManager.resetConfiguration();
Logger.getRootLogger().setLevel(Level.INFO);
Logger.getRootLogger()
.addAppender(new ConsoleAppender(new PatternLayout("%m%n")));
Logger.getLogger(NativeCodeLoader.class).setLevel(Level.ERROR);
new OzoneAdmin().run(argv);
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]