fixed up logger error to make it better to handle in code

This commit is contained in:
Bojan Kucera 2025-06-07 11:58:24 -04:00
parent db66687f48
commit d0bb4db042
18 changed files with 51 additions and 45 deletions

View file

@ -185,7 +185,7 @@ export class HybridCache implements CacheProvider {
return isHealthy;
} catch (error) {
this.logger.error('Hybrid cache health check failed', { error });
this.logger.error('Hybrid cache health check failed', error);
return false;
}
}

View file

@ -222,7 +222,7 @@ export class MemoryCache implements CacheProvider {
await this.del('__health_check__');
return result === 'ok';
} catch (error) {
this.logger.error('Memory cache health check failed', { error });
this.logger.error('Memory cache health check failed', error);
return false;
}
}

View file

@ -212,7 +212,7 @@ export class RedisCache implements CacheProvider {
const pong = await this.redis.ping();
return pong === 'PONG' && this.isConnected;
} catch (error) {
this.logger.error('Redis health check failed', { error });
this.logger.error('Redis health check failed', error);
return false;
}
}