mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
commit
b254e4285b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue