add some extra logs

This commit is contained in:
mlsmaycon
2026-02-03 14:00:54 +01:00
parent b20d484972
commit f4af85e130
7 changed files with 370 additions and 1 deletions
+8
View File
@@ -828,8 +828,16 @@ func (e *Engine) handleAutoUpdateVersion(autoUpdateSettings *mgmProto.AutoUpdate
}
func (e *Engine) handleSync(update *mgmProto.SyncResponse) error {
started := time.Now()
defer func() {
log.Warnf("sync with lock finished in %s", time.Since(started))
}()
e.syncMsgMux.Lock()
defer e.syncMsgMux.Unlock()
started2 := time.Now()
defer func() {
log.Warnf("sync finished in %s", time.Since(started2))
}()
// Check context INSIDE lock to ensure atomicity with shutdown
if e.ctx.Err() != nil {