Log debug on etcd if $ENABLE_DEBUG_LOG_LEVEL is on
Change-Id: I452a2e4882377d165e3c28fcec18e237e45db8a4
This commit is contained in:
parent
2697e431d2
commit
119ee66cde
@ -46,6 +46,9 @@ function start_etcd3 {
|
|||||||
cmd+=" --listen-peer-urls http://0.0.0.0:$ETCD_PEER_PORT "
|
cmd+=" --listen-peer-urls http://0.0.0.0:$ETCD_PEER_PORT "
|
||||||
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
|
||||||
|
cmd+=" --debug"
|
||||||
|
fi
|
||||||
|
|
||||||
local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE"
|
local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE"
|
||||||
write_user_unit_file $ETCD_SYSTEMD_SERVICE "$cmd" "" "root"
|
write_user_unit_file $ETCD_SYSTEMD_SERVICE "$cmd" "" "root"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user