summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/lcm/settings.py')
-rw-r--r--lcm/lcm/settings.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lcm/lcm/settings.py b/lcm/lcm/settings.py
index edba0e3d..894b9691 100644
--- a/lcm/lcm/settings.py
+++ b/lcm/lcm/settings.py
@@ -155,10 +155,14 @@ STATIC_URL = '/static/'
LOGGING_CONFIG = None
# yaml configuration of logging
LOGGING_FILE = os.path.join(BASE_DIR, 'lcm/log.yml')
+if 'test' in sys.argv:
+ os.system('sed -i "s|/var/log/onap/vfc/gvnfm-vnflcm|/tmp|" %s' % LOGGING_FILE)
config.yamlConfig(filepath=LOGGING_FILE, watchDog=True)
if 'test' in sys.argv:
+ os.system('sed -i "s|/tmp|/var/log/onap/vfc/gvnfm-vnflcm|" %s' % LOGGING_FILE)
+
from lcm.pub.config import config
config.REG_TO_MSB_WHEN_START = False