Skip to content

Commit 4f65808

Browse files
committed
Fix log when cluster is turned on/off
1 parent 9013a8a commit 4f65808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public Response updateEntity(
8686
ProxyBackendConfiguration backend =
8787
OBJECT_MAPPER.readValue(jsonPayload, ProxyBackendConfiguration.class);
8888
gatewayBackendManager.updateBackend(backend);
89-
log.info("Setting up the backend %s with healthy state", backend.getName());
89+
log.info("Marking the cluster %s %s", backend.getName(), backend.isActive() ? "active" : "inactive");
9090
routingManager.updateBackEndHealth(backend.getName(), backend.isActive());
9191
break;
9292
case RESOURCE_GROUP:

0 commit comments

Comments
 (0)