feat: replace loguru with logging

This commit is contained in:
jo 2023-02-26 01:27:00 +01:00 committed by Kyle Robbertze
parent cced09f1ac
commit c6940db289
34 changed files with 138 additions and 245 deletions

View file

@ -4,7 +4,7 @@ from typing import Optional
import click
from libretime_shared.cli import cli_config_options, cli_logging_options
from libretime_shared.config import DEFAULT_ENV_PREFIX
from libretime_shared.logging import level_from_name, setup_logger
from libretime_shared.logging import setup_logger
from .config import Config
from .message_listener import MessageListener
@ -33,7 +33,7 @@ def cli(
"""
Run analyzer.
"""
setup_logger(level_from_name(log_level), log_filepath)
setup_logger(log_level, log_filepath)
config = Config(config_filepath)
# Start up the StatusReporter process