Skip to content

Commit

Permalink
remove core.StdLogHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Nov 24, 2024
1 parent 5c27a15 commit ef40464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyglossary/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from typing import TYPE_CHECKING

from . import logger
from .logger import TRACE, StdLogHandler
from .logger import TRACE

if TYPE_CHECKING:
import logging
Expand All @@ -31,7 +31,6 @@ def exc_note(e: Exception, note: str) -> Exception:
__all__ = [
"TRACE",
"VERSION",
"StdLogHandler",
"appResDir",
"cacheDir",
"checkCreateConfDir",
Expand Down
4 changes: 2 additions & 2 deletions pyglossary/ui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from dataclasses import dataclass
from typing import Any

from pyglossary import core # essential
from pyglossary import core, logger # essential
from pyglossary.langs import langDict
from pyglossary.ui.argparse_main import configFromArgs, defineFlags, validateFlags
from pyglossary.ui.base import UIBase
Expand Down Expand Up @@ -151,7 +151,7 @@ def mainPrepare() -> tuple[bool, MainPrepareResult | None]:
args.noColor = True

core.noColor = args.noColor
logHandler = core.StdLogHandler(
logHandler = logger.StdLogHandler(
noColor=args.noColor,
)
log.setVerbosity(args.verbosity)
Expand Down

0 comments on commit ef40464

Please sign in to comment.