Skip to content

Commit

Permalink
Merge pull request #17933 from siyuanfoundation/log
Browse files Browse the repository at this point in the history
robustness: add 2 more log lines when persistClientReports
  • Loading branch information
serathius authored May 7, 2024
2 parents 3536195 + dd79332 commit 126e0d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/robustness/report/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
Expand Down

0 comments on commit 126e0d5

Please sign in to comment.