From dd79332cf6897045f4ac7d3d319d28aefaab1cd3 Mon Sep 17 00:00:00 2001 From: Siyuan Zhang Date: Fri, 3 May 2024 12:59:41 -0700 Subject: [PATCH] robustness: add 2 more log lines when persistClientReports Signed-off-by: Siyuan Zhang --- tests/robustness/report/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/robustness/report/client.go b/tests/robustness/report/client.go index cf0b24f52d6..9a4431f7585 100644 --- a/tests/robustness/report/client.go +++ b/tests/robustness/report/client.go @@ -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)) } } }