summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gvnfmadapter/driver/log.yml2
-rwxr-xr-xgvnfmadapter/run.sh11
2 files changed, 12 insertions, 1 deletions
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
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