summaryrefslogtreecommitdiff
path: root/Omni/Test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Test.py')
-rw-r--r--Omni/Test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Omni/Test.py b/Omni/Test.py
index 89ef1fa..71ac32a 100644
--- a/Omni/Test.py
+++ b/Omni/Test.py
@@ -15,7 +15,8 @@ class TestError(Exception):
def run(area: App.Area, tests: list[typing.Any]) -> None:
"""Run the given tests with loglevel determined by area."""
- Log.setup(logging.DEBUG if area == App.Area.Test else logging.ERROR)
+ logger = logging.getLogger(__name__)
+ Log.setup(logger, logging.DEBUG if area == App.Area.Test else logging.ERROR)
suite = unittest.TestSuite()
suite.addTests([
unittest.defaultTestLoader.loadTestsFromTestCase(tc) for tc in tests