diff options
author | maopengzhang <zhang.maopeng1@zte.com.cn> | 2019-06-04 20:21:28 +0800 |
---|---|---|
committer | maopengzhang <zhang.maopeng1@zte.com.cn> | 2019-06-04 20:37:12 +0800 |
commit | c98863902c01e612e8a2dc27b03c11b5e345571d (patch) | |
tree | b14dbe1c1e1b0ca8c035d59c9aa8e251a205619b | |
parent | 33f10edff6f3d3c4fece34ae67f08bd768f6e1c7 (diff) |
Add tosca parser log
Add tosca parser log configuration
Change-Id: I816de3a8a55f73d85ecaca97acf348e17a81c391
Issue-ID: VFC-1414
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
-rw-r--r-- | genericparser/log.yml | 4 | ||||
-rw-r--r-- | genericparser/settings.py | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/genericparser/log.yml b/genericparser/log.yml index 3a6a9f9..602cd40 100644 --- a/genericparser/log.yml +++ b/genericparser/log.yml @@ -10,6 +10,10 @@ loggers: handlers: [django_handler] level: "DEBUG" propagate: False + tosca: + handlers: [genericparserlocal_handler, genericparser_handler] + level: "DEBUG" + propagate: False handlers: genericparserlocal_handler: level: "DEBUG" diff --git a/genericparser/settings.py b/genericparser/settings.py index f59c0da..a170834 100644 --- a/genericparser/settings.py +++ b/genericparser/settings.py @@ -165,6 +165,11 @@ if platform.system() == 'Windows' or 'test' in sys.argv: 'level': 'DEBUG', 'propagate': False }, + 'tosca': { + 'handlers': ['genericparser_handler'], + 'level': 'DEBUG', + 'propagate': False + }, } } else: |