mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
re-add log
This commit is contained in:
parent
48fe6ebcc5
commit
9ddbd12060
@ -1,10 +1,10 @@
|
|||||||
import Redis from 'ioredis';
|
import Redis from 'ioredis';
|
||||||
import { startOfMonth } from 'date-fns';
|
import { startOfMonth } from 'date-fns';
|
||||||
// import debug from 'debug';
|
import debug from 'debug';
|
||||||
import { getSessions, getAllWebsites } from 'queries';
|
import { getSessions, getAllWebsites } from 'queries';
|
||||||
import { REDIS } from 'lib/db';
|
import { REDIS } from 'lib/db';
|
||||||
|
|
||||||
// const log = debug('umami:redis');
|
const log = debug('umami:redis');
|
||||||
const INITIALIZED = 'redis:initialized';
|
const INITIALIZED = 'redis:initialized';
|
||||||
|
|
||||||
function getClient() {
|
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 };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user