Log redis errors correctly

This commit is contained in:
TSR Berry 2023-06-09 17:13:55 +02:00
parent ec41207426
commit e42adddc1b
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -27,7 +27,7 @@ export const redisClient = createClient({
}); });
redisClient.on("error", (err: Error) => 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 // Init express server