Spaces:
Build error
Build error
Michael Hu
commited on
Commit
·
b6a5e98
1
Parent(s):
b428abb
log
Browse files
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 |
-
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
|
62 |
-
|
63 |
-
|
64 |
|
65 |
-
|
|
|
|
|
|
|
|
|
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."""
|