Skip to content

Commit

Permalink
remove print message and use the WARNING value from the logging module
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohnlich, Eric (IMS) committed Mar 17, 2017
1 parent 3e71e6d commit 59805d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Products/PortalTransforms/transforms/broken.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
import logging
from Products.PortalTransforms.interfaces import ITransform
from Products.PortalTransforms.utils import log
from zope.interface import implementer


WARNING = 100


@implementer(ITransform)
class BrokenTransform(object):

Expand All @@ -26,8 +24,7 @@ def convert(self, orig, data, **kwargs):
# do the format
msg = "Calling convert on BROKEN transform %s (%s). Error: %s" % \
(self.id, self.module, self.error)
log(msg, severity=WARNING)
print msg
log(msg, severity=logging.WARNING)
data.setData('')
return data

Expand Down

1 comment on commit 59805d6

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wohnlich, Eric (IMS) your emails are not known to GithHb and thus it is impossible to know if you have signed the Plone Contributor Agreement, which is required to merge this pull request.

Learn about the Plone Contributor Agreement: http://docs.plone.org/develop/coredev/docs/contributors_agreement_explained.html How to add more emails to your GitHub account: https://help.github.com/articles/adding-an-email-address-to-your-github-account/

Please sign in to comment.