From 013d38552a22a50076ab22c37906b286bdec2477 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 12 May 2021 09:47:35 +0100 Subject: [PATCH] log the expiry timeout value when disk is low --- services/clsi/app/js/ProjectPersistenceManager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/clsi/app/js/ProjectPersistenceManager.js b/services/clsi/app/js/ProjectPersistenceManager.js index 536630a8e0..d0fd4c2439 100644 --- a/services/clsi/app/js/ProjectPersistenceManager.js +++ b/services/clsi/app/js/ProjectPersistenceManager.js @@ -38,7 +38,10 @@ module.exports = ProjectPersistenceManager = { const lowerExpiry = ProjectPersistenceManager.EXPIRY_TIMEOUT * 0.9 if (lowDisk && Settings.project_cache_length_ms / 2 < lowerExpiry) { logger.warn( - { stats: stats }, + { + stats: stats, + newExpiryTimeoutInDays: (lowerExpiry / oneDay).toFixed(2) + }, 'disk running low on space, modifying EXPIRY_TIMEOUT' ) ProjectPersistenceManager.EXPIRY_TIMEOUT = lowerExpiry