feat(#27): Set up consola logger, make use of log levels in backend and frontend

This commit is contained in:
2025-12-24 10:26:22 +01:00
parent 805c66bc4f
commit 7f7852a66a
36 changed files with 312 additions and 141 deletions

View File

@@ -70,7 +70,6 @@ class ApplicationFormService(
id: UUID,
applicationFormDto: ApplicationFormDto,
): ApplicationForm {
println("Updating ApplicationForm: $applicationFormDto")
val existingApplicationForm = getApplicationFormById(id)
val existingSnapshot = versionService.createSnapshot(existingApplicationForm)

View File

@@ -28,7 +28,6 @@ class JwtUserSyncFilter(
val logger = LoggerFactory.getLogger(JwtUserSyncFilter::class.java)
val auth: Authentication? = SecurityContextHolder.getContext().authentication
println("JwtUserSyncFilter invoked for request: ${request.requestURI}")
try {
if (auth is JwtAuthenticationToken && auth.isAuthenticated) {
val jwt: Jwt = auth.token

View File

@@ -13,7 +13,7 @@ spring:
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate:
ddl-auto: create
show-sql: true
show-sql: false
properties:
hibernate:
format_sql: true
@@ -39,16 +39,6 @@ spring:
issuer-uri: http://localhost:7080/realms/legalconsenthub
jwk-set-uri: http://localhost:7080/realms/legalconsenthub/protocol/openid-connect/certs
logging:
level:
org:
springframework:
security: TRACE
oauth2: TRACE
web: TRACE
org.testcontainers: INFO
com.github.dockerjava: WARN
management:
health:
mail:

View File

@@ -61,3 +61,14 @@ management:
health:
mail:
enabled: false
# Log levels: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
logging:
level:
com.betriebsratkanzlei.legalconsenthub: ${LOGGING_LEVEL_APP:INFO}
org:
springframework:
security: ${LOGGING_LEVEL_ROOT:INFO}
oauth2: ${LOGGING_LEVEL_ROOT:INFO}
web: ${LOGGING_LEVEL_ROOT:INFO}
testcontainers: ${LOGGING_LEVEL_ROOT:INFO}