log db path

This commit is contained in:
j 2019-01-22 19:13:12 +05:30
parent 8e39b18fe8
commit 2e412933a7

View file

@ -79,7 +79,7 @@ class Icons(dict):
c.close() c.close()
conn.close() conn.close()
except: except:
logger.debug('failed to insert icon %s', id, exc_info=True) logger.debug('failed to insert icon %s (%s)', id, self._db, exc_info=True)
def __delitem__(self, id): def __delitem__(self, id):
sql = 'DELETE FROM icon WHERE id = ?' sql = 'DELETE FROM icon WHERE id = ?'
@ -91,7 +91,7 @@ class Icons(dict):
c.close() c.close()
conn.close() conn.close()
except: except:
logger.debug('failed to delete icon %s', id) logger.debug('failed to delete icon %s (%s)', id, self._db)
def clear(self, prefix): def clear(self, prefix):
try: try: