This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch 5.2
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/5.2 by this push:
new ae69243450 PHOENIX-7250 Fix HBase log level in tests
ae69243450 is described below
commit ae69243450921e36b3845a3372e9913e0c941816
Author: Istvan Toth
AuthorDate: Mon Mar 4 10:31:17 2024 +0100
PHOENIX-7250 Fix HBase log level in tests
also remove redundant phoenix-core/src/it/resources/log4j2-test.properties
file
---
.../src/it/resources/log4j2-test.properties| 45 --
.../src/test/resources/log4j2-test.properties | 8 ++--
2 files changed, 4 insertions(+), 49 deletions(-)
diff --git a/phoenix-core/src/it/resources/log4j2-test.properties
b/phoenix-core/src/it/resources/log4j2-test.properties
deleted file mode 100644
index 9766cf8c64..00
--- a/phoenix-core/src/it/resources/log4j2-test.properties
+++ /dev/null
@@ -1,45 +0,0 @@
-#/**
-# * Licensed to the Apache Software Foundation (ASF) under one
-# * or more contributor license agreements. See the NOTICE file
-# * distributed with this work for additional information
-# * regarding copyright ownership. The ASF licenses this file
-# * to you under the Apache License, Version 2.0 (the
-# * "License"); you may not use this file except in compliance
-# * with the License. You may obtain a copy of the License at
-# *
-# * http://www.apache.org/licenses/LICENSE-2.0
-# *
-# * Unless required by applicable law or agreed to in writing, software
-# * distributed under the License is distributed on an "AS IS" BASIS,
-# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# * See the License for the specific language governing permissions and
-# * limitations under the License.
-# */
-
-status = debug
-dest = err
-name = PhoenixTest
-packages = org.apache.hadoop.hbase.logging
-
-appender.console.type = Console
-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] %C{2}(%L): %m%n
-
-rootLogger = DEBUG,Console
-
-#TODO review these settings
-log4j.logger.org.apache.hadoop=WARN
-log4j.logger.org.apache.zookeeper=ERROR
-log4j.logger.org.apache.hadoop.hbase=DEBUG
-
-logger.hadoop.name = org.apache.hadoop
-logger.hadoop.level = WARN
-
-logger.zookeeper.name = org.apache.zookeeper
-logger.zookeeper.level = ERROR
-
-logger.hbase.name = apache.hadoop.hbase
-logger.hbase.level = DEBUG
diff --git a/phoenix-core/src/test/resources/log4j2-test.properties
b/phoenix-core/src/test/resources/log4j2-test.properties
index b1c708cc06..c022b81a0d 100644
--- a/phoenix-core/src/test/resources/log4j2-test.properties
+++ b/phoenix-core/src/test/resources/log4j2-test.properties
@@ -18,7 +18,7 @@
status = debug
dest = err
-name = PropertiesConfig
+name = PhoenixTest
packages = org.apache.hadoop.hbase.logging
appender.console.type = Console
@@ -34,15 +34,15 @@ rootLogger = DEBUG,Console
logger.mortbay.name = org.mortbay.log
logger.mortbay.name = WARN
+logger.hbase.name = org.apache.hadoop.hbase
+logger.hbase.level = DEBUG
+
logger.hadoop.name = org.apache.hadoop
logger.hadoop.level = WARN
logger.zookeeper.name = org.apache.zookeeper
logger.zookeeper.level = ERROR
-logger.hbase.name = apache.hadoop.hbase
-logger.hbase.level = DEBUG
-
logger.directory.name = org.apache.directory
logger.directory.level = WARN