Change-Id: I4a0c3b60b6383669d785a600fc2289c4b80afdc1
Issue-ID: MODELING-493
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
import os
import platform
import sys
import os
import platform
import sys
from logging import config as log_config
from catalog.pub.config import config as pub_config
from logging import config as log_config
from catalog.pub.config import config as pub_config
}
else:
LOGGING_CONFIG = None
}
else:
LOGGING_CONFIG = None
+ log_path = '/var/log/onap/modeling/etsicatalog'
+ if not os.path.exists(log_path):
+ os.makedirs(log_path)
+
# yaml configuration of logging
LOGGING_FILE = os.path.join(BASE_DIR, 'catalog/log.yml')
# yaml configuration of logging
LOGGING_FILE = os.path.join(BASE_DIR, 'catalog/log.yml')
- log_config.yamlConfig(filepath=LOGGING_FILE, watchDog=True)
+ with open(file=LOGGING_FILE, mode='r', encoding="utf-8")as file:
+ logging_yaml = yaml.load(stream=file, Loader=yaml.FullLoader)
+ log_config.dictConfig(config=logging_yaml)
if 'test' in sys.argv:
pub_config.REG_TO_MSB_WHEN_START = False
if 'test' in sys.argv:
pub_config.REG_TO_MSB_WHEN_START = False
# uwsgi for parallel processing
uwsgi
# uwsgi for parallel processing
uwsgi
-apscheduler==3.6.3
\ No newline at end of file
+apscheduler==3.6.3
+PyYAML==5.3.1
\ No newline at end of file