From 4f69e3282e471422b87445b9f2dbcdefdc204722 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Fri, 13 Feb 2026 13:54:48 +0100 Subject: [PATCH] Apply suggestion from @Pwuts --- .../backend/backend/api/features/chat/service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autogpt_platform/backend/backend/api/features/chat/service.py b/autogpt_platform/backend/backend/api/features/chat/service.py index 959bb4108e..44e87472d1 100644 --- a/autogpt_platform/backend/backend/api/features/chat/service.py +++ b/autogpt_platform/backend/backend/api/features/chat/service.py @@ -1804,13 +1804,13 @@ def _log_api_error( details["retry_count"] = retry_count if isinstance(error, RateLimitError): - logger.warning(f"Rate limit error: {details}") + logger.warning(f"Rate limit error: {details}", exc_info=error) elif isinstance(error, APIConnectionError): - logger.warning(f"API connection error: {details}") + logger.warning(f"API connection error: {details}", exc_info=error) elif isinstance(error, APIStatusError) and error.status_code >= 500: - logger.error(f"API server error (5xx): {details}") + logger.error(f"API server error (5xx): {details}", exc_info=error) else: - logger.error(f"API error: {details}") + logger.error(f"API error: {details}", exc_info=error) def _extract_api_error_details(error: Exception) -> dict[str, Any]: