log the expiry timeout value when disk is low

This commit is contained in:
Brian Gough 2021-05-12 09:47:35 +01:00
parent b3ed820444
commit 013d38552a

View file

@ -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