[F] Fix logging?

pull/100/head
Azalea 2025-01-03 16:32:26 -05:00
parent 85b5910ea9
commit cb0f46c5db
1 changed files with 2 additions and 2 deletions

View File

@ -72,6 +72,8 @@ class ChusanController(
}
if (api.startsWith("CM") && api !in handlers) api = api.removePrefix("CM")
val token = TokenChecker.getCurrentSession()?.token?.substring(0, 6) ?: "NO-TOKEN"
log.info("Chu3 < $api : ${data.toJson()} : [$token]")
if (api !in noopEndpoint && !handlers.containsKey(api)) {
log.warn("Chu3 > $api not found")
@ -84,8 +86,6 @@ class ChusanController(
log.info("Chu3 > $api no-op")
return """{"returnCode":"1"}"""
}
val token = TokenChecker.getCurrentSession()?.token?.substring(0, 6) ?: "NO-TOKEN"
log.info("Chu3 < $api : ${data.toJson()} : [$token]")
return try {
Metrics.timer("aquadx_chusan_api_latency", "api" to api).recordCallable {