Skip to content

Commit 7ade454

Browse files
authored
Silently fail the istio pilot quit call (#52)
* Make calling istio pilot quit call configurable * fail silently if istio pilot endpoint isn't available or fails. In cases where it isn't available it will fail silently without creating any noise in logs
1 parent acdbcee commit 7ade454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform-service-framework/src/main/java/org/hypertrace/core/serviceframework/PlatformServiceLauncher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.hypertrace.core.serviceframework;
22

3+
import com.typesafe.config.Config;
34
import org.apache.http.client.HttpClient;
45
import org.apache.http.client.methods.HttpPost;
56
import org.apache.http.impl.client.HttpClients;
@@ -61,9 +62,8 @@ private static void finalizeService() {
6162
HttpPost httppost = new HttpPost(istioPilotQuitEndpoint);
6263
try {
6364
httpclient.execute(httppost);
64-
LOGGER.info("Request to pilot succeeded");
65+
LOGGER.debug("Request to pilot succeeded");
6566
} catch (Exception e) {
66-
LOGGER.error("Error while calling quitquitquit", e);
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)