diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-03-08 14:39:55 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-03-08 14:39:55 +0800 |
commit | 2dce2e514f236316b185608989c297e9720a228a (patch) | |
tree | def222311bb480fce66a5d8ded818bd51dc60a70 /windriver/titanium_cloud/settings.py | |
parent | c701ab185721e50cca3d432220361aaa723358cc (diff) |
Change the log filepath
As required by logging project
Change-Id: I93f8cca6c5b5c9b90d889a3ab2a310af98b8200a
Issue-ID: MULTICLOUD-178
Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/settings.py')
-rw-r--r-- | windriver/titanium_cloud/settings.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/windriver/titanium_cloud/settings.py b/windriver/titanium_cloud/settings.py index c8e39518..31900687 100644 --- a/windriver/titanium_cloud/settings.py +++ b/windriver/titanium_cloud/settings.py @@ -91,7 +91,7 @@ LOGGING = { 'titanium_cloud_handler': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', - 'filename': os.path.join(BASE_DIR, 'logs/runtime_titanium_cloud.log'), + 'filename': '/var/log/onap/multicloud/openstack/windriver/titanium_cloud.log', 'formatter': 'standard', 'maxBytes': 1024 * 1024 * 50, 'backupCount': 5, @@ -104,7 +104,12 @@ LOGGING = { 'level': 'DEBUG', 'propagate': False }, - 'newton': { + 'newton_base': { + 'handlers': ['titanium_cloud_handler'], + 'level': 'DEBUG', + 'propagate': False + }, + 'common': { 'handlers': ['titanium_cloud_handler'], 'level': 'DEBUG', 'propagate': False @@ -147,6 +152,8 @@ MULTIVIM_VERSION = "multicloud-" + OPENSTACK_VERSION if 'test' in sys.argv: + LOGGING['handlers']['titanium_cloud_handler']['filename'] = 'logs/titanium_cloud.log' + REST_FRAMEWORK = {} import platform |