From c018d2dd1d7e7f1cc19b25f6ec74b3dec44ae9b9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 12 Nov 2025 21:20:07 -0500 Subject: Cleanup some logging setup code I think the calls to Log.setup() were accidentally creating multiple loggers, hopefully this fixes the problem. --- Omni/Test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Omni/Test.py') 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 -- cgit v1.2.3