From 9ddbd12060937865442fa4ee799e4e3763fe762f Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Mon, 29 Aug 2022 10:47:31 -0700 Subject: [PATCH] re-add log --- lib/redis.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redis.js b/lib/redis.js index 845f0a23..06fd09eb 100644 --- a/lib/redis.js +++ b/lib/redis.js @@ -1,10 +1,10 @@ import Redis from 'ioredis'; import { startOfMonth } from 'date-fns'; -// import debug from 'debug'; +import debug from 'debug'; import { getSessions, getAllWebsites } from 'queries'; import { REDIS } from 'lib/db'; -// const log = debug('umami:redis'); +const log = debug('umami:redis'); const INITIALIZED = 'redis:initialized'; function getClient() { @@ -50,4 +50,4 @@ const redis = process.env.REDIS_URL && (global[REDIS] || getClient()); } })(); -export default { client: redis, stageData }; +export default { client: redis, stageData, log };