From 85254b229fb4df0da468deabb8e8d744e9a1f15f Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Mon, 26 Jan 2026 21:42:16 +0530 Subject: [PATCH] Log auth verify failures in prod --- src/main/kotlin/com/android/trisolarisserver/controller/Auth.kt | 2 +- src/main/resources/application-prod.properties | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/android/trisolarisserver/controller/Auth.kt b/src/main/kotlin/com/android/trisolarisserver/controller/Auth.kt index 06263ac..0045adf 100644 --- a/src/main/kotlin/com/android/trisolarisserver/controller/Auth.kt +++ b/src/main/kotlin/com/android/trisolarisserver/controller/Auth.kt @@ -85,7 +85,7 @@ class Auth( } val user = appUserRepo.findByFirebaseUid(decoded.uid) ?: throw ResponseStatusException(HttpStatus.UNAUTHORIZED, "User not found") - logger.info("Auth verify resolved uid={}, userId={}", decoded.uid, user.id) + logger.warn("Auth verify resolved uid={}, userId={}", decoded.uid, user.id) return MyPrincipal( userId = user.id ?: throw ResponseStatusException(HttpStatus.UNAUTHORIZED, "User id missing"), firebaseUid = decoded.uid diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 678bf54..45bf25e 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,2 +1,3 @@ spring.datasource.url=jdbc:postgresql://localhost:5432/trisolaris ai.llama.baseUrl=http://localhost:8089/v1/chat/completions +logging.level.com.android.trisolarisserver.controller.Auth=INFO