From 20e4bd9bb30972d86a4a19dd3f6cf97929d1b9da Mon Sep 17 00:00:00 2001 From: Achraf Date: Tue, 25 Apr 2023 10:23:32 +0000 Subject: [PATCH] [FIX] google_calendar: Change logger type from error to exception In sentry we receive like 2k syncing issue from google_calendar. This commit converts `_logger.error` to `_logger.warning` because we don't need an erro for that sentry-4121123364 https://online.sentry.io/issues/4121123364 closes odoo/odoo#119742 X-original-commit: e797712561113f098edc1346995cecd7e96ad362 Signed-off-by: Arnaud Joset Signed-off-by: Achraf --- addons/google_calendar/models/google_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/google_calendar/models/google_sync.py b/addons/google_calendar/models/google_sync.py index 17c8b7dbbe6..b5efa10a3f8 100644 --- a/addons/google_calendar/models/google_sync.py +++ b/addons/google_calendar/models/google_sync.py @@ -209,7 +209,7 @@ class GoogleSync(models.AbstractModel): error_log += "The event (%(id)s - %(name)s at %(start)s) could not be synced. It will not be synced while " \ "it is not updated. Reason: %(reason)s" % {'id': event_ids, 'start': start, 'name': name, 'reason': reason} - _logger.error(error_log) + _logger.warning(error_log) body = _("The following event could not be synced with Google Calendar.") + Markup("
") + \ _("It will not be synced as long at it is not updated.") + Markup("
") + \