plone.app.linkintegrity/master: add log-message

Philip Bauer <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plone.app.linkintegrity
Branch: refs/heads/master
Date: 2017-06-22T18:04:40+02:00
Author: Philip Bauer (pbauer) <[email protected]>
Commit: https://github.com/plone/plone.app.linkintegrity/commit/8e65fa1117826c0b3f49ddf8087bef180e8b9240

add log-message

Files changed:
M plone/app/linkintegrity/upgrades.py

diff --git a/plone/app/linkintegrity/upgrades.py b/plone/app/linkintegrity/upgrades.py
index 3bd44c5..0a93b8d 100644
--- a/plone/app/linkintegrity/upgrades.py
+++ b/plone/app/linkintegrity/upgrades.py
@@ -5,6 +5,9 @@
 from Products.CMFCore.utils import getToolByName
 from zope.lifecycleevent import modified
 
+import logging
+log = logging.getLogger(__name__)
+
 
 def migrate_linkintegrity_relations(context):
     """Migrate linkintegrity-relation from reference_catalog to zc.relation.
@@ -18,7 +21,8 @@ def migrate_linkintegrity_relations(context):
             source_obj = uuidToObject(brain.sourceUID)
             target_obj = uuidToObject(brain.targetUID)
             if source_obj is None or target_obj is None:
-                # reference_catalog my be inconsistent
+                # reference_catalog may be inconsistent
+                log.info('Cannot delete relation since the relation_catalog is inconsistent.')   # noqa: E501
                 continue
             # Delete old reference
             reference_catalog.deleteReference(



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.