Michael Hu commited on
Commit
b6a5e98
·
1 Parent(s): b428abb
src/application/services/audio_processing_service.py CHANGED
@@ -51,18 +51,25 @@ class AudioProcessingApplicationService:
51
  container: Dependency injection container
52
  config: Application configuration (optional, will be resolved from container)
53
  """
54
- self._container = container
55
- self._config = config or container.resolve(AppConfig)
56
- self._temp_files: Dict[str, str] = {} # Track temporary files for cleanup
 
 
 
57
 
58
- # Initialize error handling components
59
- self._error_mapper = ErrorMapper()
60
- self._recovery_manager = RecoveryManager()
61
 
62
- # Setup logging
63
- self._setup_logging()
64
 
65
- logger.info("AudioProcessingApplicationService initialized")
 
 
 
 
66
 
67
  def _setup_logging(self) -> None:
68
  """Setup logging configuration."""
 
51
  container: Dependency injection container
52
  config: Application configuration (optional, will be resolved from container)
53
  """
54
+ try:
55
+ logger.info("Initializing AudioProcessingApplicationService...")
56
+
57
+ self._container = container
58
+ self._config = config or container.resolve(AppConfig)
59
+ self._temp_files: Dict[str, str] = {} # Track temporary files for cleanup
60
 
61
+ # Initialize error handling components
62
+ self._error_mapper = ErrorMapper()
63
+ self._recovery_manager = RecoveryManager()
64
 
65
+ # Skip complex logging setup for now to avoid issues
66
+ # self._setup_logging()
67
 
68
+ logger.info("AudioProcessingApplicationService initialized successfully")
69
+
70
+ except Exception as e:
71
+ print(f"Error: Failed to initialize AudioProcessingApplicationService: {e}")
72
+ raise
73
 
74
  def _setup_logging(self) -> None:
75
  """Setup logging configuration."""