From c04b0443b73e648c31e62ee3402bfdb84ed50840 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Mon, 6 Oct 2014 14:32:28 +0200 Subject: [PATCH] [FIX] google_calendar: add missing parameter to logger_info --- addons/google_calendar/controllers/main.py | 2 +- addons/google_calendar/google_calendar.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/google_calendar/controllers/main.py b/addons/google_calendar/controllers/main.py index 63034e5c61f..1f307133ea0 100644 --- a/addons/google_calendar/controllers/main.py +++ b/addons/google_calendar/controllers/main.py @@ -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"} diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py index cffc2742280..03a311dd2ff 100644 --- a/addons/google_calendar/google_calendar.py +++ b/addons/google_calendar/google_calendar.py @@ -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):