mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
fix: remove duplicate logging configurations to ensure consistent timestamp format
This commit is contained in:
@@ -6,8 +6,12 @@ from src.display_manager import DisplayManager
|
|||||||
from src.font_test_manager import FontTestManager
|
from src.font_test_manager import FontTestManager
|
||||||
from src.config_manager import ConfigManager
|
from src.config_manager import ConfigManager
|
||||||
|
|
||||||
# Configure logging
|
# Configure logging to match main application
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(
|
||||||
|
level=logging.INFO,
|
||||||
|
format='%(asctime)s.%(msecs)03d - %(levelname)s:%(name)s:%(message)s',
|
||||||
|
datefmt='%Y-%m-%d %H:%M:%S'
|
||||||
|
)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ from typing import Dict, Any
|
|||||||
from src.config_manager import ConfigManager
|
from src.config_manager import ConfigManager
|
||||||
from src.display_manager import DisplayManager
|
from src.display_manager import DisplayManager
|
||||||
|
|
||||||
# Configure logging
|
# Get logger without configuring
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Clock:
|
class Clock:
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ import math
|
|||||||
from .weather_icons import WeatherIcons
|
from .weather_icons import WeatherIcons
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# Configure logging
|
# Get logger without configuring
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class DisplayManager:
|
class DisplayManager:
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ from .cache_manager import CacheManager
|
|||||||
from requests.adapters import HTTPAdapter
|
from requests.adapters import HTTPAdapter
|
||||||
from urllib3.util.retry import Retry
|
from urllib3.util.retry import Retry
|
||||||
|
|
||||||
# Configure logging
|
# Get logger without configuring
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class StockManager:
|
class StockManager:
|
||||||
|
|||||||
Reference in New Issue
Block a user