mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #17933 from siyuanfoundation/log
robustness: add 2 more log lines when persistClientReports
This commit is contained in:
commit
126e0d511f
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user