core.common: deprecate outdated LazyLogger alias

This commit is contained in:
Dima Gerasimov 2024-08-16 12:12:40 +03:00 committed by karlicoss
parent 614c929f95
commit 7023088d13
13 changed files with 50 additions and 30 deletions

View file

@ -27,13 +27,13 @@ config = make_config(ip_config)
from functools import lru_cache
from typing import Iterator, List
from my.core.common import LazyLogger
from my.core import make_logger
from my.core.compat import bisect_left
from my.ip.all import ips
from my.location.common import Location
from my.location.fallback.common import FallbackLocation, DateExact, _datetime_timestamp
logger = LazyLogger(__name__, level="warning")
logger = make_logger(__name__, level="warning")
def fallback_locations() -> Iterator[FallbackLocation]:

View file

@ -19,8 +19,7 @@ import re
# pip3 install geopy
import geopy # type: ignore
from my.core import stat, Stats
from my.core.common import LazyLogger
from my.core import stat, Stats, make_logger
from my.core.cachew import cache_dir, mcachew
from my.core.warnings import high
@ -33,7 +32,7 @@ high("Please set up my.google.takeout.parser module for better takeout support")
USE_GREP = False
logger = LazyLogger(__name__)
logger = make_logger(__name__)
class Location(NamedTuple):