From 85aabeb9c7caa954cd8facc7debf0cdf4bdc1fbf Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Sat, 20 May 2017 22:55:17 +0200 Subject: [PATCH] testsuite: call setup_logging after destroying logging config --- src/borg/testsuite/archiver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 6d8c23f9f..bf25eb7d6 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -44,6 +44,7 @@ from ..helpers import MAX_S from ..patterns import IECommand, PatternMatcher, parse_pattern from ..item import Item +from ..logger import setup_logging from ..remote import RemoteRepository, PathNotAllowed from ..repository import Repository from . import has_lchflags, has_llfuse @@ -265,6 +266,7 @@ def tearDown(self): shutil.rmtree(self.tmpdir, ignore_errors=True) # destroy logging configuration logging.Logger.manager.loggerDict.clear() + setup_logging() def cmd(self, *args, **kw): exit_code = kw.pop('exit_code', 0)