diff --git a/apps/webhook/src/webhook.service.ts b/apps/webhook/src/webhook.service.ts index 6e257c40c..d98bee504 100644 --- a/apps/webhook/src/webhook.service.ts +++ b/apps/webhook/src/webhook.service.ts @@ -87,7 +87,6 @@ export class WebhookService { async webhookFunc(webhookUrl: string, data: object): Promise { try { - console.log("webhookurl::" , webhookUrl) const response = await fetch(webhookUrl, { method: 'POST', headers: { @@ -97,8 +96,6 @@ export class WebhookService { }); if (!response.ok) { - console.log("not ok response::" , response) - console.log("not ok response status::" , response.status) this.logger.error(`Error in sending webhook response to org webhook url:`, response.status); throw new InternalServerErrorException(ResponseMessages.webhook.error.webhookResponse); } @@ -110,13 +107,11 @@ export class WebhookService { async webhookResponse(webhookUrl: string, data: object): Promise { try { - console.log("webhookurl::" , webhookUrl) const webhookResponse = async (): Promise => this.webhookFunc(webhookUrl, data); const response = await AsyncRetry(webhookResponse, this.retryOptions(this.logger)); return response; } catch (error) { this.logger.error(`Error in sending webhook response to org webhook url: ${error}`); - console.log("error webhook::" , error) throw new RpcException(error.response ? error.response : error); } }