Skip to content

Commit

Permalink
Disable Redis query logs
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaRaki committed Jan 17, 2025
1 parent 163c1ec commit 96c8dc7
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 96c8dc7

Please sign in to comment.