Fix logging SQL execution error

This commit is contained in:
Benjamin Renard 2014-09-14 23:00:27 +02:00 committed by root
parent 6fa431e837
commit f1158750f1

View file

@ -42,7 +42,8 @@ class DB(object):
self.con.commit()
return c
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
def select(self,sql):