From 5d8328fbc47b7c1d782099a7263af3225dd88988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Arturo=20Cabral=20Mej=C3=ADa?= Date: Fri, 7 Apr 2023 16:36:09 -0400 Subject: [PATCH] chore: dont log redis pw --- src/cache/client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cache/client.ts b/src/cache/client.ts index d4b819b7..8c743753 100644 --- a/src/cache/client.ts +++ b/src/cache/client.ts @@ -15,7 +15,9 @@ let instance: CacheClient | undefined = undefined export const getCacheClient = (): CacheClient => { if (!instance) { const config = getCacheConfig() - debug('config: %o', config) + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { password: _, ...loggableConfig } = config + debug('config: %o', loggableConfig) instance = createClient(config) }