Add db id to logging

This commit is contained in:
shortcutme 2018-01-19 02:17:23 +01:00
parent 03c469ff3a
commit 5b6e1f699d
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -46,7 +46,7 @@ class Db(object):
self.last_query_time = time.time()
def __repr__(self):
return "<Db:%s>" % self.db_path
return "<Db#%s:%s>" % (id(self), self.db_path)
def connect(self):
if self not in opened_dbs: