diff --git a/charts/tidb-cluster/templates/scripts/_start_tidb.sh.tpl b/charts/tidb-cluster/templates/scripts/_start_tidb.sh.tpl index f223992c4f..dc644199ea 100644 --- a/charts/tidb-cluster/templates/scripts/_start_tidb.sh.tpl +++ b/charts/tidb-cluster/templates/scripts/_start_tidb.sh.tpl @@ -34,6 +34,7 @@ then ARGS="${ARGS} --enable-binlog=true" fi +SLOW_LOG_FILE=${SLOW_LOG_FILE:-""} if [[ ! -z "${SLOW_LOG_FILE}" ]] then ARGS="${ARGS} --log-slow-query=${SLOW_LOG_FILE:-}"