+

Fix logging SQL execution error

Benjamin Renard [2014-09-14 21:00:27]
Fix logging SQL execution error
Filename
mycoserver/db/__init__.py
diff --git a/mycoserver/db/__init__.py b/mycoserver/db/__init__.py
index a920235..8c81b69 100644
--- a/mycoserver/db/__init__.py
+++ b/mycoserver/db/__init__.py
@@ -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):
ViewGit