mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(logging): get interval from env var
This commit is contained in:
@@ -163,7 +163,8 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
|
|||||||
|
|
||||||
module.exports = server;
|
module.exports = server;
|
||||||
|
|
||||||
var activeHandleInterval = setInterval(logHandles,600000);
|
var logHandlesInterval = +nconf.get('LOG_HANDLES_INTERVAL') || 60000;
|
||||||
|
var activeHandleInterval = setInterval(logHandles, logHandlesInterval);
|
||||||
|
|
||||||
function logHandles() {
|
function logHandles() {
|
||||||
activeHandles.print();
|
activeHandles.print();
|
||||||
|
|||||||
Reference in New Issue
Block a user