diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-12 21:20:07 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-13 11:20:14 -0500 |
| commit | c018d2dd1d7e7f1cc19b25f6ec74b3dec44ae9b9 (patch) | |
| tree | a8c0748068f00449bd175aa953eb1acd7027fa65 /Omni/Test.py | |
| parent | 2ad3efe73fbd5df58ae77ec411121575547f0e11 (diff) | |
Cleanup some logging setup code
I think the calls to Log.setup() were accidentally creating multiple
loggers, hopefully this fixes the problem.
Diffstat (limited to 'Omni/Test.py')
| -rw-r--r-- | Omni/Test.py | 3 |
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 |
