diff --git a/conf/log4j2.properties b/conf/log4j2.properties index 90d52a2bea13..31e2cf4660fa 100644 --- a/conf/log4j2.properties +++ b/conf/log4j2.properties @@ -25,7 +25,7 @@ appender.console.type = Console appender.console.target = SYSTEM_ERR appender.console.name = console appender.console.layout.type = PatternLayout -appender.console.layout.pattern = %d{ISO8601} %-5p [%t (%X)] %c{2}: %.1000m%n +appender.console.layout.pattern = %d{ISO8601} %-5p [%t%notEmpty{ %X}] %c{2}: %.1000m%n # Daily Rolling File Appender appender.DRFA.type = RollingFile diff --git a/hbase-logging/src/test/resources/log4j2.properties b/hbase-logging/src/test/resources/log4j2.properties index 4f29bb455624..1ad757870417 100644 --- a/hbase-logging/src/test/resources/log4j2.properties +++ b/hbase-logging/src/test/resources/log4j2.properties @@ -26,7 +26,7 @@ appender.console.target = SYSTEM_ERR appender.console.name = Console appender.console.maxSize = 1G appender.console.layout.type = PatternLayout -appender.console.layout.pattern = %d{ISO8601} %-5p [%t (%X)] %C{2}(%L): %m%n +appender.console.layout.pattern = %d{ISO8601} %-5p [%t%notEmpty{ %X}] %C{2}(%L): %m%n rootLogger = INFO,Console