Use correct format while printing logs

This commit is contained in:
Arun Prakash Jana 2016-12-01 01:14:23 +05:30
parent f8d4d331d1
commit 4071e76c5c
No known key found for this signature in database
GPG Key ID: A75979F35C080412

10
buku.py
View File

@ -819,7 +819,7 @@ class BukuDb:
if interrupted:
break
logdbg('Thread %d: processed %d' % (threading.get_ident(), count))
logdbg('Thread %d: processed %d', threading.get_ident(), count)
with cond:
done['value'] += 1
cond.notify()
@ -1192,7 +1192,7 @@ class BukuDb:
return False
index = result[0]
logdbg('Opening random index ' + str(index))
logdbg('Opening random index %d', index)
query = 'SELECT URL FROM bookmarks WHERE id = ?'
try:
@ -1245,7 +1245,7 @@ class BukuDb:
else:
query = query[:-6]
logdbg('(%s), %s' % (query, arguments))
logdbg('(%s), %s', query, arguments)
self.cur.execute(query, arguments)
resultset = self.cur.fetchall()
@ -1498,7 +1498,7 @@ def is_bad_url(url):
if not netloc:
return True
logdbg('netloc: %s' % netloc)
logdbg('netloc: %s', netloc)
# netloc cannot start or end with a '.'
if netloc.startswith('.') or netloc.endswith('.'):
@ -1566,7 +1566,7 @@ def get_PoolManager():
basic_auth=url.username + ':' + url.password
)
logdbg('proxy: [%s]' % proxy)
logdbg('proxy: [%s]', proxy)
return urllib3.ProxyManager(proxy, headers=headers)
return urllib3.PoolManager()