Skip to content

Commit 9689083

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Log debug on etcd if $ENABLE_DEBUG_LOG_LEVEL is on"
2 parents d0264bd + 119ee66 commit 9689083

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/etcd3

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ function start_etcd3 {
4646
cmd+=" --listen-peer-urls http://0.0.0.0:$ETCD_PEER_PORT "
4747
fi
4848
cmd+=" --listen-client-urls http://$SERVICE_HOST:$ETCD_PORT"
49+
if [ "$ENABLE_DEBUG_LOG_LEVEL" == "True" ]; then
50+
cmd+=" --debug"
51+
fi
4952

5053
local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE"
5154
write_user_unit_file $ETCD_SYSTEMD_SERVICE "$cmd" "" "root"

0 commit comments

Comments
 (0)