Skip to content

Commit

Permalink
Fix deprecated 'warn' method
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed May 17, 2018
1 parent e0984b1 commit b7a39e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Products/ZCatalog/Catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def addColumn(self, name, default_value=None, threshold=10000):
if name != name.strip():
# Someone could have mistakenly added a space at the end
# of the input field.
LOG.warn("stripped space from new column %r -> %r", name,
LOG.warning("stripped space from new column %r -> %r", name,
name.strip())
name = name.strip()

Expand Down Expand Up @@ -254,8 +254,8 @@ def addIndex(self, name, index_type):
if name != name.strip():
# Someone could have mistakenly added a space at the end
# of the input field.
LOG.warn("stripped space from new index %r -> %r", name,
name.strip())
LOG.warning("stripped space from new index %r -> %r", name,
name.strip())
name = name.strip()

indexes = self.indexes
Expand Down

0 comments on commit b7a39e7

Please sign in to comment.