Spaces:
Sleeping
Sleeping
Michael Hu
commited on
Commit
·
520c315
1
Parent(s):
be471de
fix(logging): use exc_info=True instead of exception=error in STT provider
Browse files
src/infrastructure/base/stt_provider_base.py
CHANGED
|
@@ -312,5 +312,5 @@ class STTProviderBase(ISpeechRecognitionService, ABC):
|
|
| 312 |
error_msg += f" during {context}"
|
| 313 |
error_msg += f": {str(error)}"
|
| 314 |
|
| 315 |
-
logger.error(error_msg,
|
| 316 |
raise SpeechRecognitionException(error_msg) from error
|
|
|
|
| 312 |
error_msg += f" during {context}"
|
| 313 |
error_msg += f": {str(error)}"
|
| 314 |
|
| 315 |
+
logger.error(error_msg, exc_info=True)
|
| 316 |
raise SpeechRecognitionException(error_msg) from error
|