Add db id to logging
This commit is contained in:
parent
03c469ff3a
commit
5b6e1f699d
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Db(object):
|
||||||
self.last_query_time = time.time()
|
self.last_query_time = time.time()
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<Db:%s>" % self.db_path
|
return "<Db#%s:%s>" % (id(self), self.db_path)
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
if self not in opened_dbs:
|
if self not in opened_dbs:
|
||||||
|
|
Loading…
Reference in a new issue