+

Add debug after sync group

Benjamin Renard [2014-08-17 18:55:43]
Add debug after sync group
Filename
mycoserver/controllers.py
diff --git a/mycoserver/controllers.py b/mycoserver/controllers.py
index e829d2d..db01b99 100644
--- a/mycoserver/controllers.py
+++ b/mycoserver/controllers.py
@@ -75,6 +75,7 @@ def sync(req):
 	if 'email' in login_data:
 		log.debug(u'Login successful : sync groups')
 		ret=req.ctx.db.sync_group(data['email'],data['groups'])
+		log.debug("After sync : %s" % ret)
 		return wsgi_helpers.respond_json(req.ctx,ret,headers=[('Access-Control-Allow-Origin','*')])
 	else:
 		log.debug(u'Login error : return login error')
ViewGit