mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 06:17:41 +00:00
Replace root logger calls with module-specific loggers
This commit is contained in:
@@ -3,6 +3,8 @@ import threading
|
||||
|
||||
from core.config import config, create_provider_from_config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class DataProviders:
|
||||
"""Global object for storing data providers."""
|
||||
@@ -33,7 +35,7 @@ class DataProviders:
|
||||
def start_providers(providers, provider_type):
|
||||
"""Helper method to activate enabled providers in the list."""
|
||||
|
||||
logging.info(f"Starting {provider_type} providers...")
|
||||
logger.info(f"Starting {provider_type} providers...")
|
||||
for p in providers:
|
||||
if p.enabled:
|
||||
p.start()
|
||||
|
||||
Reference in New Issue
Block a user