Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 3541cea..c4d494d 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -374,12 +374,7 @@ class Test(unittest.TestCase):
return trigger
def _setup_logging(self, fork_num):
- for handler in logging.getLogger().handlers:
- logging.getLogger().removeHandler(handler)
- logging.basicConfig(level=logging.DEBUG,
- filename=join(tmpdir, '%s.log' % fork_num),
- format='%(asctime)s %(levelname)s %(name)s: %(message)s')
- toolkit.init_logging(10)
+ toolkit.init_logging(10, filename=join(tmpdir, '%s.log' % fork_num))
sys.stdout.flush()
sys.stderr.flush()