From e42adddc1b93f4e44103445fe098f0c80f3cb2c6 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Fri, 9 Jun 2023 17:13:55 +0200 Subject: [PATCH] Log redis errors correctly --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 80d5fdf..8d62510 100644 --- a/src/app.ts +++ b/src/app.ts @@ -27,7 +27,7 @@ export const redisClient = createClient({ }); redisClient.on("error", (err: Error) => - winston.error("An error occurred.", { source: "Redis client", error: err }) + loggerInstance.error("An error occurred.", { source: "Redis client", error: err }) ); // Init express server