Merge "Log debug on etcd if $ENABLE_DEBUG_LOG_LEVEL is on"

This commit is contained in:
Zuul 2018-12-21 11:52:16 +00:00 committed by Gerrit Code Review
commit 9689083d74
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ function start_etcd3 {
cmd+=" --listen-peer-urls http://0.0.0.0:$ETCD_PEER_PORT "
fi
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"
write_user_unit_file $ETCD_SYSTEMD_SERVICE "$cmd" "" "root"