[FIX] google_calendar: add missing parameter to logger_info

This commit is contained in:
Jeremy Kersten 2014-10-06 14:32:28 +02:00
parent afb91fde81
commit c04b0443b7
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class google_calendar_controller(http.Controller):
}
# If App authorized, and user access accepted, We launch the synchronization
return gc_obj.synchronize_events(request.cr, request.uid, [request.uid], context=kw.get('local_context'))
return gc_obj.synchronize_events(request.cr, request.uid, [], context=kw.get('local_context'))
return {"status": "success"}

View File

@ -510,7 +510,7 @@ class google_calendar(osv.AbstractModel):
else:
_logger.info("[%s] Calendar Synchro - Done with status : %s !" % (user_to_sync, resp.get("status")))
except Exception, e:
_logger.info("[%s] Calendar Synchro - Exception : %s !" % exception_to_unicode(e))
_logger.info("[%s] Calendar Synchro - Exception : %s !" % (user_to_sync, exception_to_unicode(e)))
_logger.info("Calendar Synchro - Ended by cron")
def synchronize_events(self, cr, uid, ids, lastSync=True, context=None):