Apache9 commented on code in PR #5588: URL: https://github.com/apache/hbase/pull/5588#discussion_r1433450197
########## bin/get-active-master.rb: ########## @@ -24,9 +24,9 @@ java_import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker # disable debug/info logging on this script for clarity -log_level = org.apache.log4j.Level::ERROR -org.apache.log4j.Logger.getLogger('org.apache.hadoop.hbase').setLevel(log_level) -org.apache.log4j.Logger.getLogger('org.apache.zookeeper').setLevel(log_level) +log_level = org.apache.logging.log4j.Level::ERROR +org.apache.logging.log4j.core.config.Configurator.setAllLevels('org.apache.hadoop.hbase', log_level) Review Comment: I think you can use the methods here https://github.com/apache/hbase/blob/master/hbase-logging/src/main/java/org/apache/hadoop/hbase/logging/Log4jUtils.java -- 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...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org