summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYan Yang <yangyanyj@chinamobile.com>2018-03-26 02:56:25 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-26 02:56:25 +0000
commit5c9e7f31e9ad7f614d1b7dd8cd4860cd4aed468d (patch)
treec54dd47fc33f936f919eed1c628a0dbf6ef9e579
parent73215b7ab8a52a94a3af625161ced2983a21fea5 (diff)
parent2c7a1e39d27f3f8d6579449134393adc28d5b60f (diff)
Merge changes I616afb61,Ib8885c31
* changes: Fix vfc-gvnfmdriver log config bug Add vfc-gvnfmdriver logDir check
-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