Skip to content

Commit

Permalink
Disable Redis query timeout log (#2270)
Browse files Browse the repository at this point in the history
This PR disables logging for Redis timeouts.
  • Loading branch information
PooyaRaki authored Jan 17, 2025
1 parent 01d3543 commit 9d8dd2e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/datasources/cache/redis.cache.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ export class RedisCacheService
return await promiseWithTimeout(queryObject, timeout);
} catch (error) {
if (error instanceof PromiseTimeoutError) {
this.loggingService.error('Redis Query Timed out!');
/**
* @todo: Uncomment this line after the issue on Redis is fixed.
*/
// this.loggingService.error('Redis Query Timed out!');
}

throw error;
Expand All @@ -197,7 +200,10 @@ export class RedisCacheService

private validatgeRedisClientIsReady(): void {
if (!this.ready()) {
this.loggingService.error(`Redis client is not ready`);
/**
* @todo: Uncomment this line after the issue on Redis is fixed.
*/
// this.loggingService.error(`Redis client is not ready`);

throw new ServiceUnavailableException('Redis client is not ready');
}
Expand Down

0 comments on commit 9d8dd2e

Please sign in to comment.