diff --git a/apps/api/src/search/googlesearch.ts b/apps/api/src/search/googlesearch.ts index 3389ef91..8e6eade0 100644 --- a/apps/api/src/search/googlesearch.ts +++ b/apps/api/src/search/googlesearch.ts @@ -57,7 +57,10 @@ async function _req( return resp; } catch (error) { if (error.response && error.response.status === 429) { - logger.warn("Google Search: Too many requests, try again later.", error.response); + logger.warn("Google Search: Too many requests, try again later.", { + status: error.response.status, + statusText: error.response.statusText + }); throw new Error("Google Search: Too many requests, try again later."); } throw error;