summaryrefslogtreecommitdiffstats
path: root/build/ves-collector/start.sh
diff options
context:
space:
mode:
authorBryan Sullivan <bryan.sullivan@att.com>2017-11-27 21:23:13 -0800
committerBryan Sullivan <bryan.sullivan@att.com>2017-11-27 21:23:13 -0800
commitc1a19aa347fb8a68840043e86d80f7124e638f87 (patch)
tree026511b1fcd64d6396b9f2eb62c4dd797bd84842 /build/ves-collector/start.sh
parentf615fa0f50ab849526434cfe24a25246696df339 (diff)
Add loglevel as env variable
JIRA: VES-2 Change-Id: I909da7f9bc62ba33e5e33bb90d153ec9a425acb8 Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'build/ves-collector/start.sh')
-rw-r--r--build/ves-collector/start.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/build/ves-collector/start.sh b/build/ves-collector/start.sh
index 1c41778..be30c9a 100644
--- a/build/ves-collector/start.sh
+++ b/build/ves-collector/start.sh
@@ -34,7 +34,15 @@ sed -i -- "s~vel_topic_name = example_vnf~vel_topic_name = $ves_topic~g" \
sed -i -- "/vel_topic_name = /a influxdb = $ves_influxdb_host" \
evel-test-collector/config/collector.conf
-python /opt/ves/evel-test-collector/code/collector/monitor.py \
- --config /opt/ves/evel-test-collector/config/collector.conf \
- --influxdb $ves_influxdb_host \
- --section default > /opt/ves/monitor.log 2>&1
+if [[ "$ves_loglevel" != "" ]]; then
+ python /opt/ves/evel-test-collector/code/collector/monitor.py \
+ --config /opt/ves/evel-test-collector/config/collector.conf \
+ --influxdb $ves_influxdb_host \
+ --section default > /opt/ves/monitor.log 2>&1
+else
+ python /opt/ves/evel-test-collector/code/collector/monitor.py \
+ --config /opt/ves/evel-test-collector/config/collector.conf \
+ --influxdb $ves_influxdb_host \
+ --section default
+fi
+