8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f80de3 commit bb7d8ebCopy full SHA for bb7d8eb
bin/kafka-run-class.sh
@@ -225,7 +225,7 @@ if [ -z "$KAFKA_LOG4J_OPTS" ]; then
225
(( WINDOWS_OS_FORMAT )) && LOG4J_DIR=$(cygpath --path --mixed "${LOG4J_DIR}")
226
KAFKA_LOG4J_OPTS="-Dlog4j2.configurationFile=${LOG4J_DIR}"
227
else
228
- if echo "$KAFKA_LOG4J_OPTS" | grep -E "log4j\.[^[:space:]]+(\.properties|\.xml)$"; then
+ if echo "$KAFKA_LOG4J_OPTS" | grep -E "log4j\.[^[:space:]]+(\.properties|\.xml)$" >/dev/null; then
229
# Enable Log4j 1.x configuration compatibility mode for Log4j 2
230
export LOG4J_COMPATIBILITY=true
231
echo DEPRECATED: A Log4j 1.x configuration file has been detected, which is no longer recommended. >&2
0 commit comments