mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-25 03:26:40 +02:00
chore(crm): log Lexware API error response body for debugging
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
00f6b9842e
commit
b4d1f33862
1 changed files with 4 additions and 1 deletions
|
|
@ -154,8 +154,11 @@ export class LexwareClientService implements OnModuleInit {
|
||||||
axiosError.response?.statusText ||
|
axiosError.response?.statusText ||
|
||||||
axiosError.message ||
|
axiosError.message ||
|
||||||
'Unbekannter Fehler';
|
'Unbekannter Fehler';
|
||||||
|
const responseBody = axiosError.response?.data
|
||||||
|
? JSON.stringify(axiosError.response.data).substring(0, 500)
|
||||||
|
: '';
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
`Lexware API Fehler: ${method} ${path} -> ${status || 'NETWORK'}: ${msg}`,
|
`Lexware API Fehler: ${method} ${path} -> ${status || 'NETWORK'}: ${msg}${responseBody ? ` | Body: ${responseBody}` : ''}`,
|
||||||
);
|
);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue