Skip to content

Commit

Permalink
KAFKA-18388: test-kraft-server-start.sh should use log4j2.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 committed Jan 4, 2025
1 parent a628d9b commit 69b1778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
5 changes: 2 additions & 3 deletions raft/bin/test-kraft-server-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

base_dir=$(dirname $0)

if [ "x$KAFKA_LOG4J_OPTS" = "x" ]; then
echo "DEPRECATED: using log4j 1.x configuration. To use log4j 2.x configuration, run with: 'export KAFKA_LOG4J_OPTS=\"-Dlog4j.configurationFile=file:$base_dir/../config/kraft-log4j2.yml\"'"
export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/../config/kraft-log4j.properties"
if [ -z "$KAFKA_LOG4J_OPTS" ]; then
export KAFKA_LOG4J_OPTS="-Dlog4j2.configurationFile=file:$base_dir/../config/kraft-log4j2.yaml"
fi

if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
Expand Down
24 changes: 0 additions & 24 deletions raft/config/kraft-log4j.properties

This file was deleted.

0 comments on commit 69b1778

Please sign in to comment.