From 18ddec614463525f75c4208006911a5c6716e5cc Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Thu, 15 Jun 2017 08:25:20 -0700 Subject: [PATCH] HDFS-11977. Ozone: cannot enable test debug/trace log. Contributed by Tsz Wo Nicholas Sze. --- .../hadoop-hdfs/src/test/resources/log4j.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/log4j.properties b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/log4j.properties index 4d6967abe90..47bbd4e7d60 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/log4j.properties +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/log4j.properties @@ -51,14 +51,14 @@ log4j.appender.DNMETRICSRFA.MaxFileSize=64MB # # Add a logger for ozone that is separate from the Datanode. # -log4j.logger.org.apache.hadoop.ozone=DEBUG,OZONE,FILE +log4j.logger.org.apache.hadoop.ozone=INFO,OZONE,FILE # Do not log into datanode logs. Remove this line to have single log. log4j.additivity.org.apache.hadoop.ozone=false # For development purposes, log both to console and log file. log4j.appender.OZONE=org.apache.log4j.ConsoleAppender -log4j.appender.OZONE.Threshold=info +log4j.appender.OZONE.Threshold=ALL log4j.appender.OZONE.layout=org.apache.log4j.PatternLayout log4j.appender.OZONE.layout.ConversionPattern=%d{ISO8601} [%t] %-5p \ %X{component} %X{function} %X{resource} %X{user} %X{request} - %m%n