Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dkovacevic committed Dec 6, 2023
1 parent bf78793 commit 7ba2111
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backend/src/main/java/com/wire/bots/roman/ProviderClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.wire.xenon.models.AssetKey;
import com.wire.xenon.tools.Logger;
import com.wire.xenon.tools.Util;
import jakarta.validation.constraints.NotNull;
import jakarta.ws.rs.client.Client;
import jakarta.ws.rs.client.Entity;
import jakarta.ws.rs.client.WebTarget;
Expand All @@ -15,7 +16,6 @@
import jakarta.ws.rs.core.NewCookie;
import jakarta.ws.rs.core.Response;

import jakarta.validation.constraints.NotNull;
import java.io.ByteArrayOutputStream;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
Expand Down Expand Up @@ -74,9 +74,11 @@ public Response enableService(NewCookie zprovider, UUID serviceId, String passwo
updateService.enabled = true;
updateService.password = password;

return servicesTarget
WebTarget connection = servicesTarget
.path(serviceId.toString())
.path("connection")
.path("connection");
Logger.debug("enableService: PUT %s", connection.getUri());
return connection
.request(MediaType.APPLICATION_JSON)
.cookie(zprovider)
.put(Entity.entity(updateService, MediaType.APPLICATION_JSON));
Expand Down

0 comments on commit 7ba2111

Please sign in to comment.