Skip to content

Commit

Permalink
chore: change logging level and add logging
Browse files Browse the repository at this point in the history
Signed-off-by: PhilippFruh <[email protected]>
  • Loading branch information
PhilippFr committed Jul 6, 2022
1 parent 6a6793c commit 5f7936c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Service;
Expand Down Expand Up @@ -43,14 +44,16 @@ public ConsultantSearchResultDTO getAllConsultants() {
"FIRSTNAME",
"ASC"
);
log.debug(String.valueOf(consultants));
JSONObject consultantJson = new JSONObject(consultants);
log.debug("Consultants: {}", consultantJson);
return consultants;
}

private void addTechnicalUserHeaders(ApiClient apiClient) {
KeycloakLoginResponseDTO keycloakLoginResponseDTO = identityClient.loginUser(
keycloakTechnicalUsername, keycloakTechnicalPassword
);
log.debug("Technical Acces Token: {}", keycloakLoginResponseDTO.getAccessToken());
HttpHeaders headers = this.securityHeaderSupplier
.getKeycloakAndCsrfHttpHeaders(keycloakLoginResponseDTO.getAccessToken());
headers.forEach((key, value) -> apiClient.addDefaultHeader(key, value.iterator().next()));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Logging: SLF4J (via Lombok)
logging.level.root=INFO
logging.level.root=DEBUG
logging.level.org.springframework.web=DEBUG
logging.level.org.springframework.security=DEBUG
logging.level.org.hibernate=ERROR
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Logging: SLF4J (via Lombok)
logging.level.root=INFO
logging.level.root=DEBUG
logging.level.org.springframework.web=DEBUG
logging.level.org.springframework.security=DEBUG
logging.level.org.hibernate=ERROR
Expand Down

0 comments on commit 5f7936c

Please sign in to comment.