diff src/test/test_plugin_xep_0033.py @ 993:301b342c697a

core: use of the new core.log module: /!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
author Goffi <goffi@goffi.org>
date Sat, 19 Apr 2014 19:19:19 +0200
parents e1842ebcb2f3
children b3f383ab39da
line wrap: on
line diff
--- a/src/test/test_plugin_xep_0033.py	Sat Apr 19 16:48:26 2014 +0200
+++ b/src/test/test_plugin_xep_0033.py	Sat Apr 19 19:19:19 2014 +0200
@@ -111,7 +111,7 @@
                 host = JID(to_jid.host)
                 logger = logging.getLogger()
                 level = logger.getEffectiveLevel()
-                logger.setLevel(logging.ERROR)  # remove warning pollution
+                logger.setLevel(logging.ERROR)  # remove log.warning pollution
                 if self.host.memory.hasServerFeature(plugin.NS_ADDRESS, host, Const.PROFILE[0]):
                     if host not in cache:
                         sent.append(host)
@@ -136,7 +136,7 @@
             """
             logger = logging.getLogger()
             level = logger.getEffectiveLevel()
-            logger.setLevel(logging.ERROR)  # remove warning pollution
+            logger.setLevel(logging.ERROR)  # remove log.warning pollution
             pre_treatments = defer.Deferred()
             post_treatments = defer.Deferred()
             self.plugin.sendMessageTrigger(data, pre_treatments, post_treatments, Const.PROFILE[0])