import logger from __init__.py

This commit is contained in:
Francisco Schulz 2023-02-15 15:45:20 +01:00
parent c1ae8e6a4b
commit 00b40c0632

View File

@ -2,6 +2,7 @@ import gzip
import json
import logging
from image_prediction import logger
from image_prediction.config import Config
from image_prediction.locations import CONFIG_FILE
from image_prediction.pipeline import load_pipeline
@ -15,7 +16,7 @@ PYINFRA_CONFIG = config.get_config()
IMAGE_CONFIG = Config(CONFIG_FILE)
# logging.getLogger().addHandler(logging.StreamHandler())
logger = logging.getLogger(__name__)
# logger = logging.getLogger(__name__)
logger.setLevel(PYINFRA_CONFIG.logging_level_root)