diff --git a/apps/server/src/services/integration-service/HttpIntegration.ts b/apps/server/src/services/integration-service/HttpIntegration.ts index 4809204e0..5b7c83a31 100644 --- a/apps/server/src/services/integration-service/HttpIntegration.ts +++ b/apps/server/src/services/integration-service/HttpIntegration.ts @@ -51,7 +51,24 @@ export class HttpIntegration implements IIntegration { - logger.error(LogOrigin.Tx, `HTTP Integration: ${err.code}`); + logger.warning(LogOrigin.Tx, `HTTP Integration: ${err.message}`); + + if (err.code === 'ECONNREFUSED') { + logger.warning(LogOrigin.Tx, `HTTP Integration: '${err.code}' The server refused the connection`); + return; + } + + if (err.code === 'ENOTFOUND') { + logger.warning(LogOrigin.Tx, `HTTP Integration: '${err.code}' DNS lookup failed`); + return; + } + + if (err.code === 'ETIMEDOUT') { + logger.warning(LogOrigin.Tx, `HTTP Integration: '${err.code}' The connection timed out`); + return; + } + + logger.warning(LogOrigin.Tx, `HTTP Integration: ${err.code}`); }); }