aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authoryanhuanwang <martin.c.yan@est.tech>2019-09-13 14:19:05 +0200
committeryanhuanwang <martin.c.yan@est.tech>2019-09-13 15:01:26 +0200
commit459a620a60f0cee9841300ee2bcda2b14ed1f2a7 (patch)
tree88c27fb9e1a354a8ec8ab4f3cffd75542967fbe4 /scripts
parent5fdb4076afc38e28c15c7eb9b5c55323a949e588 (diff)
Fix bug of DFC daily jenkins job
Change-Id: I59277bc4b259d1b91b3259e7985efca6b0639671 Signed-off-by: yanhuanwang <martin.c.yan@est.tech> Issue-ID: DCAEGEN2-1702
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
index c63eaf68..808b0b17 100755
--- a/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
+++ b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
@@ -17,6 +17,15 @@ for i in {1..10}; do
if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ]
then
echo "DFC app Running"
+ # enable TRACE logging of DFC
+ docker exec $DFC_APP /bin/sh -c " sed -i 's/org.onap.dcaegen2.collectors.datafile: WARN/org.onap.dcaegen2.collectors.datafile: TRACE/g' /opt/app/datafile/config/application.yaml"
+
+ #enable TRACE logging of spring-framework
+ docker exec $DFC_APP /bin/sh -c " sed -i 's/org.springframework.data: ERROR/org.springframework.data: TRACE/g' /opt/app/datafile/config/application.yaml"
+
+ docker restart $DFC_APP
+ sleep 10
+
break
else
echo sleep $i