etcd: Replace deprecated --debug option

... to resolve the following warning.

[WARNING] Deprecated '--debug' flag is set to true (use
'--log-level=debug' instead

Change-Id: Idb412cea64dfc42e3d1223b77f134804eeb7bd60
This commit is contained in:
Takashi Kajinami 2024-08-20 17:23:02 +09:00
parent 8784a3027f
commit 9e1348f81b

View File

@ -51,7 +51,7 @@ function start_etcd3 {
fi fi
cmd+=" --listen-client-urls http://$SERVICE_HOST:$ETCD_PORT" cmd+=" --listen-client-urls http://$SERVICE_HOST:$ETCD_PORT"
if [ "$ENABLE_DEBUG_LOG_LEVEL" == "True" ]; then if [ "$ENABLE_DEBUG_LOG_LEVEL" == "True" ]; then
cmd+=" --debug" cmd+=" --log-level=debug"
fi fi
local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE" local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE"