diff options
author | Huang Haibin <haibin.huang@intel.com> | 2018-03-15 22:02:16 +0800 |
---|---|---|
committer | Huang Haibin <haibin.huang@intel.com> | 2018-03-15 22:16:04 +0800 |
commit | 1bf84e64ce12d1e34fe5d72d6fc0411aed20cf26 (patch) | |
tree | 9493d02de28074ddbddd8c47e3141cefb0107274 /newton/newton/settings.py | |
parent | daf87b3a503a6d3ff5e82abf31d5a667d6616b16 (diff) |
modify log directory
Change-Id: I119b9018b9f403fb9f6637abe048e99f0f00c0c1
Issue-ID: MULTICLOUD-138
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'newton/newton/settings.py')
-rw-r--r-- | newton/newton/settings.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newton/newton/settings.py b/newton/newton/settings.py index 4b08d2a6..aafcfbbc 100644 --- a/newton/newton/settings.py +++ b/newton/newton/settings.py @@ -98,7 +98,7 @@ LOGGING = { 'newton_handler': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', - 'filename': os.path.join(BASE_DIR, 'logs/runtime_newton.log'), + 'filename': '/var/log/onap/multicloud/openstack/newton/newton.log', 'formatter': 'standard', 'maxBytes': 1024 * 1024 * 50, 'backupCount': 5, @@ -149,6 +149,7 @@ MULTIVIM_VERSION = "multicloud-" + OPENSTACK_VERSION if 'test' in sys.argv: + LOGGING['handlers']['newton_handler']['filename'] = 'logs/newton.log' REST_FRAMEWORK = {} import platform |