An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:loud_sound: Add elapsed/threshold logging to auto-lock cron job #18034
Daniel700a6f8c43f0
diff --git a/kernel/model/crypto.go b/kernel/model/crypto.goindex 6d68eece7a..6f3f7c3a20 100644--- a/kernel/model/crypto.go+++ b/kernel/model/crypto.go@@ -1613,8 +1613,9 @@ func AutoLockIdleEncryptedBoxesJob() {for _, boxID := range boxIDs {if val, ok := boxLastAccess.Load(boxID); ok {lastAccess := val.(*atomic.Int64).Load()- if now-lastAccess >= thresholdNs {- logging.LogInfof("auto-locking idle encrypted notebook [%s]", boxID)+ elapsed := now - lastAccess+ if elapsed >= thresholdNs {+ logging.LogInfof("auto-locking idle encrypted notebook [%s] (elapsed=%ds, threshold=%dm)", boxID, elapsed/1e9, threshold)Unmount(boxID)}}