Skip to content

Commit

Permalink
chore: logging name of running thread
Browse files Browse the repository at this point in the history
  • Loading branch information
jaflaten committed Dec 2, 2024
1 parent f1f0126 commit 9da4231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class SykDigTokenResolver : JwtBearerTokenResolver {

override fun token(): String? {
return runBlocking {
log.info("Current thread: ${Thread.currentThread().name}")
log.info("sec context ${ReactiveSecurityContextHolder.getContext().awaitFirstOrNull()}")
val authentication = ReactiveSecurityContextHolder.getContext().awaitFirstOrNull()?.authentication as? JwtAuthenticationToken
log.info("Token: ${authentication?.token?.tokenValue}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class NasjonalOppgaveController(
@RequestHeader("X-Nav-Enhet") navEnhet: String,
@RequestBody avvisSykmeldingRequest: String,
): ResponseEntity<NasjonalManuellOppgaveDAO> {
log.info("Current thread: ${Thread.currentThread().name}")
log.info("Forsøker å avvise oppgave med oppgaveId: $oppgaveId")
return nasjonalOppgaveService.avvisOppgave(oppgaveId.toInt(), avvisSykmeldingRequest, authorization, navEnhet)
}
Expand All @@ -55,6 +56,7 @@ class NasjonalOppgaveController(
@PathVariable oppgaveid: String,
@RequestHeader("Authorization") authorization: String,
): ResponseEntity<PapirManuellOppgave> {
log.info("Current thread: ${Thread.currentThread().name}")
log.info("papirsykmelding: henter oppgave med id $oppgaveid gjennom syk-dig proxy")
val oppgave = smregistreringClient.getOppgaveRequest(authorization, oppgaveid)
val papirManuellOppgave = oppgave.body
Expand Down

0 comments on commit 9da4231

Please sign in to comment.