Skip to content

Commit

Permalink
Merge pull request #66 from Staketab/dev
Browse files Browse the repository at this point in the history
logging
  • Loading branch information
sineDtS authored May 22, 2024
2 parents 46f5870 + 04d2f50 commit ae08a28
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

import com.staketab.minanames.dto.ZkCloudWorkerRequestDTO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

@Configuration
@RequiredArgsConstructor
@Slf4j
public class ZkCloudWorkerClient {

private final RestTemplate zkCloudWorkerRestTemplate;
Expand All @@ -26,6 +28,7 @@ public class ZkCloudWorkerClient {

public ResponseEntity<String> sendToZkCloudWorker(ZkCloudWorkerRequestDTO requestDTO) {
setDefaultValues(requestDTO);
log.info(requestDTO.toString());
return zkCloudWorkerRestTemplate.postForEntity(PATH_TO_ZK_CLOUD_WORKER, requestDTO, String.class);
}

Expand Down

0 comments on commit ae08a28

Please sign in to comment.