| commit | 9689083d74dcab67aeb34113096d4d94f749af39 | [log] [tgz] |
|---|---|---|
| author | Zuul <zuul@review.openstack.org> | Fri Dec 21 11:52:16 2018 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Fri Dec 21 11:52:16 2018 +0000 |
| tree | 66bd9a070659575d597b1b428688002377a1d2ef | |
| parent | d0264bdcf46a72649ef4445aa74a51b40c336cac [diff] | |
| parent | 119ee66cded7d6e1ed04419a00e59c269eea1c54 [diff] |
Merge "Log debug on etcd if $ENABLE_DEBUG_LOG_LEVEL is on"
diff --git a/lib/etcd3 b/lib/etcd3 index 26d07fd..c65a522 100644 --- a/lib/etcd3 +++ b/lib/etcd3
@@ -46,6 +46,9 @@ 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"