Merge branch 'master' into inode-bug-fix

This commit is contained in:
Jason Axley 2025-12-03 11:43:54 -08:00 committed by GitHub
commit d6fed92b11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
87 changed files with 4539 additions and 751 deletions

View file

@ -37,8 +37,13 @@ class LogManager {
}
async ensureLogDirs() {
await fs.ensureDir(this.DailyLogPath)
await fs.ensureDir(this.ScanLogPath)
try {
await fs.ensureDir(this.DailyLogPath)
await fs.ensureDir(this.ScanLogPath)
} catch (error) {
console.error(`[LogManager] Failed to create log directories at "${this.DailyLogPath}": ${error.message}`)
throw new Error(`[LogManager] Failed to create log directories at "${this.DailyLogPath}"`, { cause: error })
}
}
/**
@ -169,7 +174,7 @@ class LogManager {
/**
* Most recent 5000 daily logs
*
* @returns {LogObject[]}
* @returns {string}
*/
getMostRecentCurrentDailyLogs() {
return this.currentDailyLog?.logs.slice(-5000) || []