Skip to content

Commit

Permalink
feat: add log info
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen9 committed Nov 15, 2024
1 parent 8b318cb commit a089388
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ public String getUser(String code, String redirectUri) {
try {
HttpHeaders headers = new HttpHeaders();
// headers.setContentType(MediaType.APPLICATION_JSON_UTF8);
headers.setContentType(MediaType.APPLICATION_JSON);
Map tokenResponse = httpWebServiceApiClient.rawPost(tokenUrl, headers);
headers.setContentType(MediaType.APPLICATION_JSON_UTF8);
// Map tokenResponse = httpWebServiceApiClient.rawPost(tokenUrl, headers);
Map tokenResponse = httpWebServiceApiClient.get(
tokenUrl, Collections.emptyMap(), headers, TIMEOUT,
Map.class);
Map<String, String> tokenBody = Objects.requireNonNull(tokenResponse);
LogUtils.info(LOGGER, "gitlab get user token info", tokenBody);

Expand Down

0 comments on commit a089388

Please sign in to comment.