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/Llamacpp.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/Llamacpp.py')
| -rwxr-xr-x | Omni/Llamacpp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Omni/Llamacpp.py b/Omni/Llamacpp.py index bf44d5e..c7e9078 100755 --- a/Omni/Llamacpp.py +++ b/Omni/Llamacpp.py @@ -9,7 +9,7 @@ sure llama-cpp still works in case I need/want to switch at some point. # : out llamacpp-test # : run llama-cpp - +import logging import Omni.App as App import Omni.Log as Log import Omni.Test as Test @@ -29,7 +29,8 @@ class TestLlamaCpp(unittest.TestCase): def main() -> None: """Entrypoint.""" if sys.argv[1] == "test": - Log.setup() + logger = logging.getLogger(__name__) + Log.setup(logger) Test.run(App.Area.Test, [TestLlamaCpp]) else: sys.exit(0) |
