Fix logging SQL execution error
This commit is contained in:
parent
6fa431e837
commit
f1158750f1
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ class DB(object):
|
||||||
self.con.commit()
|
self.con.commit()
|
||||||
return c
|
return c
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
log.error('Error executing request %s : %s' % (sql,e))
|
log.error('Error executing request %s' % sql)
|
||||||
|
log.error('Error executing request : %s' % e)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def select(self,sql):
|
def select(self,sql):
|
||||||
|
|
Loading…
Reference in a new issue