summaryrefslogtreecommitdiffstats
path: root/dashboard/backend/dovetail/db/utils.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 /dashboard/backend/dovetail/db/utils.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 'dashboard/backend/dovetail/db/utils.py')
-rwxr-xr-xdashboard/backend/dovetail/db/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dashboard/backend/dovetail/db/utils.py b/dashboard/backend/dovetail/db/utils.py
index 5e788a71..4bb0026d 100755
--- a/dashboard/backend/dovetail/db/utils.py
+++ b/dashboard/backend/dovetail/db/utils.py
@@ -47,7 +47,7 @@ def add_db_object(session, table, exception_when_existing=True,
arg_names, args)
)
db_keys = dict(zip(arg_names, args))
- logging.debug('db_keys:%s' % db_keys)
+ logging.debug('db_keys:%s', db_keys)
if db_keys:
db_object = session.query(table).filter_by(**db_keys).first()
else:
@@ -70,7 +70,7 @@ def add_db_object(session, table, exception_when_existing=True,
for key, value in kwargs.items():
setattr(db_object, key, value)
- logging.debug('db_object:%s' % db_object)
+ logging.debug('db_object:%s', db_object)
if new_object:
session.add(db_object)
session.flush()