diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-01-11 07:55:14 -0500 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-01-11 08:08:48 -0500 |
commit | 3114be6f8c77962e27551645af1859c51a110600 (patch) | |
tree | 65d7affa8a8e627b369d8633ec63498f26660fdb /dashboard/backend/dovetail/api/api.py | |
parent | 0c57358d86d0a1d155b66e3af015be5be7e80e79 (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 'dashboard/backend/dovetail/api/api.py')
-rwxr-xr-x | dashboard/backend/dovetail/api/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dashboard/backend/dovetail/api/api.py b/dashboard/backend/dovetail/api/api.py index 4fc97ebd..7839b893 100755 --- a/dashboard/backend/dovetail/api/api.py +++ b/dashboard/backend/dovetail/api/api.py @@ -104,7 +104,7 @@ def add_result(): data = _get_request_data() ret_code = 200 json_object = json.loads(data) - logging.debug('json_object:%s' % (json_object)) + logging.debug('json_object:%s', (json_object)) if not db_api.store_result(**json_object): ret_code = 500 resp = utils.make_json_response( @@ -116,7 +116,7 @@ def add_result(): @app.route("/results/<test_id>", methods=['DELETE']) def remove_results(test_id): data = _get_request_data() - logging.debug('data:%s' % data) + logging.debug('data:%s', data) response = db_api.del_result( test_id, **data ) |