mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #229 from overleaf/bg-log-expiry-timeout
log the expiry timeout value when disk space is low
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user