summaryrefslogtreecommitdiffstats
path: root/dovetail/parser.py
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2017-01-11 07:55:14 -0500
committerMatthewLi <matthew.lijun@huawei.com>2017-01-11 08:08:48 -0500
commit3114be6f8c77962e27551645af1859c51a110600 (patch)
tree65d7affa8a8e627b369d8633ec63498f26660fdb /dovetail/parser.py
parent0c57358d86d0a1d155b66e3af015be5be7e80e79 (diff)
dovetail tool: switch logging to proper usage
JIRA: DOVETAIL-178 Change-Id: Ica814d4ff634c9159e4ecca888b8cc0f6c16e624 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail/parser.py')
-rw-r--r--dovetail/parser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/dovetail/parser.py b/dovetail/parser.py
index b00b0f89..74a57764 100644
--- a/dovetail/parser.py
+++ b/dovetail/parser.py
@@ -32,15 +32,15 @@ class Parser:
kwargs = {}
for arg in dt_cfg.dovetail_config['parameters']:
path = eval(arg['path'])
- cls.logger.debug('name: %s, eval path: %s ' %
- (arg['name'], path))
+ cls.logger.debug('name: %s, eval path: %s ',
+ arg['name'], path)
kwargs[arg['name']] = \
dt_utils.get_obj_by_path(testcase.testcase, path)
- cls.logger.debug('kwargs: %s' % kwargs)
+ cls.logger.debug('kwargs: %s', kwargs)
cmd_lines = template.render(**kwargs)
except Exception as e:
- cls.logger.error('failed to parse cmd %s, exception:%s' % (cmd, e))
+ cls.logger.error('failed to parse cmd %s, exception:%s', cmd, e)
return None
return cmd_lines