diff --git a/radicale_odoo_storage/__init__.py b/radicale_odoo_storage/__init__.py index ec302d9..150ca43 100644 --- a/radicale_odoo_storage/__init__.py +++ b/radicale_odoo_storage/__init__.py @@ -107,8 +107,8 @@ class Collection(BaseCollection): if path and not cls.user: cls.user = attributes[0] - cls.logger.warning('Discover : %s (path), %s (depth), %s (cls.user), %s (attributes)' % - (path, depth, cls.user, attributes)) + cls.logger.debug('Discover : %s (path), %s (depth), %s (cls.user), %s (attributes)' % + (path, depth, cls.user, attributes)) yield cls(path) if len(attributes) == 1: # Got all if root is needed contact_path = '%sodoo-contact' % path @@ -340,7 +340,4 @@ class Collection(BaseCollection): """ Return last modified """ last = self.odoo.env[self.odoo_model].search([], limit=1, order='write_date desc') last_fields = self.odoo.execute(self.odoo_model, 'read', last, ['write_date'])[0] - self.logger.debug(last_fields) - # return strftime("%a, %d %b %Y %H:%M:%S GMT", - # strptime(last_fields.get('write_date'), '%Y-%m-%d %H:%M:%S')) return str(last_fields['write_date'])