general: switch to make_logger in a few modules, use a bit more consistent logging, rely on default INFO level
This commit is contained in:
parent
661714f1d9
commit
dff31455f1
8 changed files with 27 additions and 24 deletions
|
@ -44,11 +44,11 @@ from typing import List, Optional, NamedTuple, Sequence, Iterator
|
|||
from pathlib import Path
|
||||
import json
|
||||
|
||||
from ..core.common import get_files, LazyLogger, Json
|
||||
from my.core import get_files, make_logger, Json
|
||||
|
||||
|
||||
|
||||
logger = LazyLogger(__name__, level="warning")
|
||||
logger = make_logger(__name__)
|
||||
|
||||
|
||||
def inputs() -> Sequence[Path]:
|
||||
|
@ -175,7 +175,7 @@ class ZipExport:
|
|||
self.old_format = True
|
||||
|
||||
def raw(self, what: str, *, fname: Optional[str]=None) -> Iterator[Json]:
|
||||
logger.info('processing: %s %s', self.zpath, what)
|
||||
logger.info(f'{self.zpath} : processing {what}')
|
||||
|
||||
path = fname or what
|
||||
if not self.old_format:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue