Skip to content

Commit 9fa33d8

Browse files
authored
Merge pull request #69 from Y-Note-SAS/feature-36144-main-csu
logs for debug gs for debug duplicated_claim_code
2 parents 53e236e + 3b2d62c commit 9fa33d8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

claimManagement/src/main/java/org/openimis/imisclaims/network/request/CreateClaimGraphQLRequest.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import okhttp3.Request;
2727
import okhttp3.RequestBody;
2828
import okhttp3.Response;
29+
import io.sentry.Sentry;
2930

3031
public class CreateClaimGraphQLRequest extends BaseGraphQLRequest{
3132

@@ -47,6 +48,10 @@ public String create(
4748
) throws Exception{
4849

4950
String clientMutationId = UUID.randomUUID().toString();
51+
52+
Sentry.captureMessage(
53+
"CreateClaimGraphQLRequest - clientMutationId generated: " + clientMutationId
54+
);
5055
String fagepFields = "";
5156
if(programCode.equals("PAL")){
5257
fagepFields = " testNumber: \"" + claim.getTestNumber() + "\""
@@ -196,7 +201,9 @@ public boolean verify(String hostname, SSLSession session) {
196201
.post(body)
197202
.build();
198203

199-
204+
Sentry.captureMessage(
205+
"CreateClaimGraphQLRequest - HTTP request prepared: " + URI + " - " + clientMutationId + " - " + json.toString()
206+
);
200207
Response response = httpClient.newCall(request).execute();
201208
int responseCode = response.code();
202209

@@ -205,6 +212,9 @@ public boolean verify(String hostname, SSLSession session) {
205212

206213
String responsePhrase = response.body().string();
207214
Log.i("RESPONSE", String.format("response: %d %s", responseCode, responsePhrase));
215+
Sentry.captureMessage(
216+
"CreateClaimGraphQLRequest - HTTP response received: " + responseCode + " - " + clientMutationId + " - " + responsePhrase
217+
);
208218

209219
return clientMutationId;
210220
}

0 commit comments

Comments
 (0)