test: configuration/use of new logging system
This commit is contained in:
parent
a3186ac2e3
commit
edf5db192f
1 changed files with 23 additions and 14 deletions
|
|
@ -21,7 +21,8 @@ from sat.core.i18n import _
|
|||
from sat.test import helpers
|
||||
from twisted.trial import unittest
|
||||
import traceback
|
||||
import logging
|
||||
from sat.core.log import getLogger
|
||||
from logging import INFO
|
||||
from constants import Const
|
||||
from xml.dom import minidom
|
||||
|
||||
|
|
@ -169,9 +170,9 @@ class MemoryTest(unittest.TestCase):
|
|||
def test_paramsRegisterApp(self):
|
||||
|
||||
def register(*args):
|
||||
logger = logging.getLogger()
|
||||
logger = getLogger()
|
||||
level = logger.getEffectiveLevel()
|
||||
logger.setLevel(logging.INFO)
|
||||
logger.setLevel(INFO)
|
||||
self.host.memory.paramsRegisterApp(*args)
|
||||
logger.setLevel(level)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue