Skip to content

Commit

Permalink
Refs #70758 - Cleanup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Aug 25, 2016
1 parent 909b9d3 commit 036d135
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 9 additions & 0 deletions buildouts/plone4/docker-compose.yml
@@ -0,0 +1,9 @@
relations:
image: plone/plone:4
ports:
- "8080"
volumes:
- ../../:/plone/instance/src/eea.relations
environment:
- BUILDOUT_EGGS=eea.relations plone.app.testing
- BUILDOUT_DEVELOP=src/eea.relations
12 changes: 2 additions & 10 deletions eea/relations/rules/relateditems.py
Expand Up @@ -79,11 +79,7 @@ def forward_transition_changed(self):
transition=self.element.transition)
succeeded.add(item.absolute_url())
except Exception, err:
logger.warn(
"%s: %s",
err.message.format(action_id=self.element.transition),
item.absolute_url()
)
logger.debug("%s: %s", item.absolute_url(), err)
failed.add(item.absolute_url())
continue

Expand Down Expand Up @@ -115,11 +111,7 @@ def backward_transition_changed(self):
transition=self.element.transition)
succeeded.add(item.absolute_url())
except Exception, err:
logger.warn(
"%s: %s",
err.message.format(action_id=self.element.transition),
item.absolute_url()
)
logger.debug("%s: %s", item.absolute_url(), err)
failed.add(item.absolute_url())
continue
event = BackwardRelatedItemsWorkflowStateChanged(
Expand Down

0 comments on commit 036d135

Please sign in to comment.