[Zope-Checkins] SVN: Zope/trunk/ Downgrade the ``manage_* is discouraged. You should use event subscribers instead`` warnings to debug level logging. This particular warning hasn't motivated anyone to actually change any code.

Hanno Schlichting hannosch at hannosch.eu
Tue Mar 30 16:13:39 EDT 2010


Log message for revision 110337:
  Downgrade the ``manage_* is discouraged. You should use event subscribers instead`` warnings to debug level logging. This particular warning hasn't motivated anyone to actually change any code.
  

Changed:
  U   Zope/trunk/doc/CHANGES.rst
  U   Zope/trunk/src/OFS/subscribers.py

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst	2010-03-30 19:47:54 UTC (rev 110336)
+++ Zope/trunk/doc/CHANGES.rst	2010-03-30 20:13:39 UTC (rev 110337)
@@ -11,6 +11,10 @@
 Restructuring
 +++++++++++++
 
+- Downgrade the ``manage_* is discouraged. You should use event subscribers
+  instead`` warnings to debug level logging. This particular warning hasn't
+  motivated anyone to actually change any code.
+
 - Use the standard libraries doctest module in favor of the deprecated version
   in zope.testing.
 

Modified: Zope/trunk/src/OFS/subscribers.py
===================================================================
--- Zope/trunk/src/OFS/subscribers.py	2010-03-30 19:47:54 UTC (rev 110336)
+++ Zope/trunk/src/OFS/subscribers.py	2010-03-30 20:13:39 UTC (rev 110337)
@@ -12,12 +12,9 @@
 #
 ##############################################################################
 """
-Five subscriber definitions.
-
-$Id$
+Subscriber definitions.
 """
 
-import warnings
 from logging import getLogger
 
 import OFS.interfaces
@@ -67,10 +64,9 @@
         # Method knows it's deprecated
         return
     class_ = ob.__class__
-    warnings.warn(
+    LOG.debug(
         "%s.%s.%s is discouraged. You should use event subscribers instead." %
-        (class_.__module__, class_.__name__, method_name),
-        DeprecationWarning)
+        (class_.__module__, class_.__name__, method_name))
 
 ##################################################
 



More information about the Zope-Checkins mailing list