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/Repl.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Omni/Repl.py') diff --git a/Omni/Repl.py b/Omni/Repl.py index d7d2fb4..49b6c1e 100755 --- a/Omni/Repl.py +++ b/Omni/Repl.py @@ -20,8 +20,8 @@ additional files to load. import importlib import importlib.util import inspect +import logging import mypy.api -import Omni.Log as Log import os import pathlib import pydoc @@ -33,7 +33,7 @@ import types import typing import unittest -LOG = Log.setup() +LOG = logging.getLogger(__name__) class ReplError(Exception): @@ -246,7 +246,6 @@ def test() -> None: def move() -> None: """Actual entrypoint.""" - Log.setup() ns = sys.argv[1] path = sys.argv[2] editor = os.environ.get("EDITOR", "$EDITOR") -- cgit v1.2.3