Merge pull request #17933 from siyuanfoundation/log

robustness: add 2 more log lines when persistClientReports
This commit is contained in:
Marek Siarkowicz 2024-05-07 09:17:22 +02:00 committed by GitHub
commit 126e0d511f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,9 +58,13 @@ func persistClientReports(t *testing.T, lg *zap.Logger, path string, reports []C
}
if len(r.Watch) != 0 {
persistWatchOperations(t, lg, filepath.Join(clientDir, "watch.json"), r.Watch)
} else {
lg.Info("no watch operations for client, skip persisting", zap.Int("client-id", r.ClientID))
}
if len(r.KeyValue) != 0 {
persistKeyValueOperations(t, lg, filepath.Join(clientDir, "operations.json"), r.KeyValue)
} else {
lg.Info("no KV operations for client, skip persisting", zap.Int("client-id", r.ClientID))
}
}
}