Skip to content

Commit b84bd89

Browse files
committed
chore: add more debug loggers
1 parent 891e680 commit b84bd89

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • services/apps/organizations_enrichment_worker/src/sources/internal-api

services/apps/organizations_enrichment_worker/src/sources/internal-api/service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ export default class EnrichmentServiceInternalAPI
8989
},
9090
}
9191

92-
response = (await axios(config))?.data?.content
92+
const axiosResponse = await axios(config)
93+
console.log('[DEBUG] Full API response:', JSON.stringify(axiosResponse.data, null, 2))
94+
response = axiosResponse?.data?.content
95+
console.log('[DEBUG] Extracted content:', JSON.stringify(response, null, 2))
9396
} catch (err) {
9497
if (axios.isAxiosError(err)) {
9598
this.log.warn(
@@ -104,6 +107,7 @@ export default class EnrichmentServiceInternalAPI
104107
}
105108
}
106109

110+
console.log('[DEBUG] Response profile:', JSON.stringify(response?.profile, null, 2))
107111
return response?.profile ?? null
108112
}
109113

0 commit comments

Comments
 (0)