From 081cbb3410c4bb09cdc8f7171e3ce301a2dc2d90 Mon Sep 17 00:00:00 2001 From: jos3duardo Date: Sun, 10 Aug 2025 21:02:58 -0400 Subject: [PATCH] Reduce health check timeout and remove logging for health check status --- src/modules/health/services/health.service.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/modules/health/services/health.service.ts b/src/modules/health/services/health.service.ts index aedde41..b129462 100644 --- a/src/modules/health/services/health.service.ts +++ b/src/modules/health/services/health.service.ts @@ -62,20 +62,14 @@ export class HealthService { try { const response = await firstValueFrom( this.httpService.get(url, { - timeout: 6000, + timeout: 500, }), ); status = response.status === 200 ? ServiceStatusEnum.UP : ServiceStatusEnum.DOWN; - - this.logger.log(`Health check for ${serviceName}: ${status}`); } catch (error) { status = ServiceStatusEnum.DOWN; - - this.logger.warn( - `Health check failed for ${serviceName}: ${error.message}`, - ); } if (serviceName === 'default') {