From 9b92d0a3d0bc51567c49cf916c4cb8063ae9a33f Mon Sep 17 00:00:00 2001 From: minherz Date: Mon, 22 Nov 2021 22:24:32 +0200 Subject: [PATCH] fix: restore batching for writeLogEntriesCallable (#754) handle regression which caused to writeLogEntriesCallable stub to use non aggregated gax method. Fixes #744 --- env-tests-logging | 2 +- .../google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/env-tests-logging b/env-tests-logging index 06f6c9219..8dbce5f6a 160000 --- a/env-tests-logging +++ b/env-tests-logging @@ -1 +1 @@ -Subproject commit 06f6c921949621a878f3a47ec294b7ce25a39ddf +Subproject commit 8dbce5f6a710f210f0a3d2b0639b3b10439d2a73 diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java index feb0ed308..2ed8a05b5 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java @@ -239,7 +239,7 @@ public Map extract(ListLogsRequest request) { callableFactory.createUnaryCallable( deleteLogTransportSettings, settings.deleteLogSettings(), clientContext); this.writeLogEntriesCallable = - callableFactory.createUnaryCallable( + callableFactory.createBatchingCallable( writeLogEntriesTransportSettings, settings.writeLogEntriesSettings(), clientContext); this.listLogEntriesCallable = callableFactory.createUnaryCallable(