mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
feat(logs): provide an option to keep all logs
This commit is contained in:
@@ -38,6 +38,9 @@ async function cleanupOldLogFiles() {
|
||||
const customRetentionDays = config.Logging.retentionDays;
|
||||
if (customRetentionDays > 0) {
|
||||
retentionDays = customRetentionDays;
|
||||
} else if (customRetentionDays <= -1){
|
||||
info(`Log cleanup: keeping all log files, as specified by configuration.`);
|
||||
return
|
||||
}
|
||||
|
||||
const cutoffDate = new Date();
|
||||
|
||||
Reference in New Issue
Block a user