Skip to content

Commit 119ee66

Browse files
committed
Log debug on etcd if $ENABLE_DEBUG_LOG_LEVEL is on
Change-Id: I452a2e4882377d165e3c28fcec18e237e45db8a4
1 parent 2697e43 commit 119ee66

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)