aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh')
-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