Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-10405

ozone admin has hard-coded info loglevel

    XMLWordPrintableJSON

Details

    Description

      Root log level for ozone admin commands cannot be set via config or environment variables, because OzoneAdmin has hard-coded settings:

        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);
        }
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: