From b1030e6099f38b226c8ef86a2a4711aca8c1822a Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 19 Apr 2017 07:02:16 +0000 Subject: set dovetail.log level by command line JIRA: DOVETAIL-400 1. set both the dovetail.log and screen log level by command --debug. 2. if --report http://testapi_url:port/api/v1/, change it into --report http://testapi_url:port/api/v1 Change-Id: I7cf697d4ac9072fc2d302a67ccde0f452d84be8f Signed-off-by: xudan --- dovetail/run.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dovetail/run.py') diff --git a/dovetail/run.py b/dovetail/run.py index 5a902d7f..7386790c 100755 --- a/dovetail/run.py +++ b/dovetail/run.py @@ -211,6 +211,8 @@ def main(*args, **kwargs): dt_cfg.update_config(configs) if kwargs['report']: + if(kwargs['report'].endswith('/')): + kwargs['report'] = kwargs['report'][0:kwargs['report'].rfind('/')] dt_cfg.dovetail_config['report_dest'] = kwargs['report'] if kwargs['offline']: -- cgit 1.2.3-korg