Remove deprecated files and scripts to streamline the codebase
- Deleted unused API test files, RTSP diagnostic scripts, and development utility scripts to reduce clutter. - Removed outdated database schema and modularization proposal documents to maintain focus on current architecture. - Cleaned up configuration files and logging scripts that are no longer in use, enhancing project maintainability.
This commit is contained in:
@@ -96,7 +96,7 @@ class SystemConfig:
|
||||
"""System-wide configuration"""
|
||||
|
||||
camera_check_interval_seconds: int = 2
|
||||
log_level: str = "INFO"
|
||||
log_level: str = "WARNING"
|
||||
log_file: str = "usda_vision_system.log"
|
||||
api_host: str = "0.0.0.0"
|
||||
api_port: int = 8000
|
||||
|
||||
@@ -112,23 +112,32 @@ class USDAVisionLogger:
|
||||
def _setup_component_loggers(self) -> None:
|
||||
"""Setup specific log levels for different components"""
|
||||
|
||||
# MQTT client - can be verbose
|
||||
# MQTT client - reduce INFO logs
|
||||
mqtt_logger = logging.getLogger('usda_vision_system.mqtt')
|
||||
if self.log_level == 'DEBUG':
|
||||
mqtt_logger.setLevel(logging.DEBUG)
|
||||
else:
|
||||
elif self.log_level == 'INFO':
|
||||
mqtt_logger.setLevel(logging.INFO)
|
||||
else:
|
||||
mqtt_logger.setLevel(logging.WARNING)
|
||||
|
||||
# Camera components - important for debugging
|
||||
# Camera components - reduce INFO logs, keep WARNING and above
|
||||
camera_logger = logging.getLogger('usda_vision_system.camera')
|
||||
camera_logger.setLevel(logging.INFO)
|
||||
if self.log_level == 'DEBUG':
|
||||
camera_logger.setLevel(logging.DEBUG)
|
||||
elif self.log_level == 'INFO':
|
||||
camera_logger.setLevel(logging.INFO)
|
||||
else:
|
||||
camera_logger.setLevel(logging.WARNING)
|
||||
|
||||
# API server - can be noisy
|
||||
# API server - reduce INFO noise
|
||||
api_logger = logging.getLogger('usda_vision_system.api')
|
||||
if self.log_level == 'DEBUG':
|
||||
api_logger.setLevel(logging.DEBUG)
|
||||
else:
|
||||
elif self.log_level == 'INFO':
|
||||
api_logger.setLevel(logging.INFO)
|
||||
else:
|
||||
api_logger.setLevel(logging.WARNING)
|
||||
|
||||
# Uvicorn - reduce noise unless debugging
|
||||
uvicorn_logger = logging.getLogger('uvicorn')
|
||||
|
||||
Reference in New Issue
Block a user