File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/com/staketab/minanames/client Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .staketab .minanames .client ;
2
2
3
+ import com .google .gson .Gson ;
4
+ import com .google .gson .GsonBuilder ;
3
5
import com .staketab .minanames .dto .ZkCloudWorkerRequestDTO ;
4
6
import lombok .RequiredArgsConstructor ;
5
7
import lombok .extern .slf4j .Slf4j ;
@@ -27,7 +29,11 @@ public class ZkCloudWorkerClient {
27
29
private static final String PATH_TO_ZK_CLOUD_WORKER = "/" ;
28
30
29
31
public ResponseEntity <String > sendToZkCloudWorker (ZkCloudWorkerRequestDTO requestDTO ) {
32
+ Gson gson = new GsonBuilder ().setPrettyPrinting ().serializeNulls ().create ();
30
33
setDefaultValues (requestDTO );
34
+ if (requestDTO .getCommand ().equals ("sendTransactions" )) {
35
+ log .info (gson .toJson (requestDTO ));
36
+ }
31
37
return zkCloudWorkerRestTemplate .postForEntity (PATH_TO_ZK_CLOUD_WORKER , requestDTO , String .class );
32
38
}
33
39
You can’t perform that action at this time.
0 commit comments