fixed the issue with english localization

This commit is contained in:
George Khananaev
2025-06-02 13:22:50 +07:00
parent cbc4bfe72d
commit 54f98ae921
4 changed files with 324 additions and 52 deletions

View File

@@ -8,8 +8,10 @@ from typing import Dict, Any
import yaml
# Configure logging
logging.basicConfig(level=logging.INFO, format="[%(asctime)s] %(message)s")
# Configure logging - can be overridden by environment variable
import os
log_level = getattr(logging, os.environ.get('LOG_LEVEL', 'INFO').upper(), logging.INFO)
logging.basicConfig(level=log_level, format="[%(asctime)s] %(levelname)s: %(message)s")
log = logging.getLogger("scraper")
# Default configuration path