From 3e6d86ad43b27f431a5c1e97837c3752b464d01a Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Fri, 23 Mar 2018 17:15:43 +0800 Subject: Add vfc-gvnfmdriver logDir check Change-Id: Ib8885c319cb82881a19391a643430cbd3e1df491 Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- gvnfmadapter/run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gvnfmadapter/run.sh b/gvnfmadapter/run.sh index 49b574e..062c08f 100755 --- a/gvnfmadapter/run.sh +++ b/gvnfmadapter/run.sh @@ -13,4 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. +logDir="/var/log/onap/vfc-gvnfmdriver/" +if [ ! -x $logDir ]; then + mkdir -p $logDir +fi + nohup python manage.py runserver 0.0.0.0:8484 > /dev/null & + +while [ ! -f $logDir/runtime_gvnfmdriver.log ]; do + sleep 1 +done + +tail -F $logDir/runtime_gvnfmdriver.log -- cgit 1.2.3-korg From 2c7a1e39d27f3f8d6579449134393adc28d5b60f Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Mon, 26 Mar 2018 08:49:30 +0800 Subject: Fix vfc-gvnfmdriver log config bug Change-Id: I616afb614e2d6f8579b6bf458a258d5358587891 Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- gvnfmadapter/driver/log.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gvnfmadapter/driver/log.yml b/gvnfmadapter/driver/log.yml index bc18c14..a48b39e 100644 --- a/gvnfmadapter/driver/log.yml +++ b/gvnfmadapter/driver/log.yml @@ -2,7 +2,7 @@ version: 1 disable_existing_loggers: False loggers: - mgr: + driver: handlers: [gvnfmdriverlocal_handler, gvnfmdriver_handler] level: "DEBUG" propagate: False -- cgit 1.2.3-korg