core: use of the new core.log module:

/!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
This commit is contained in:
Goffi 2014-04-19 19:19:19 +02:00
commit 501bc92528

View file

@ -26,7 +26,6 @@ from sat.test import helpers, helpers_plugins
from sat.plugins import plugin_misc_room_game as plugin
from twisted.words.protocols.jabber.jid import JID
from wokkel.muc import User
import traceback
import logging
# Data used for test initialization
@ -61,7 +60,7 @@ class RoomGameTest(helpers.SatTestCase):
self.plugin_0249 = self.host.plugins['XEP-0249'] = helpers_plugins.FakeXEP_0249(self.host)
logger = logging.getLogger()
level = logger.getEffectiveLevel()
logger.setLevel(logging.WARNING) # remove info pollution
logger.setLevel(logging.WARNING) # remove log.info pollution
for profile in Const.PROFILE:
self.host.getClient(profile) # init self.host.profiles[profile]
logger.setLevel(level)