Skip to content

Commit f72366c

Browse files
authored
logger exceptions i vanlig logg (#888)
1 parent 40704d9 commit f72366c

File tree

1 file changed

+1
-3
lines changed
  • app/src/main/kotlin/no/nav/tiltakspenger/saksbehandling/routes/exceptionhandling

1 file changed

+1
-3
lines changed

app/src/main/kotlin/no/nav/tiltakspenger/saksbehandling/routes/exceptionhandling/ExceptionHandler.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import no.nav.tiltakspenger.libs.ktor.common.respond501NotImplemented
1212
import no.nav.tiltakspenger.saksbehandling.felles.exceptions.IkkeFunnetException
1313
import no.nav.tiltakspenger.saksbehandling.felles.exceptions.IkkeImplementertException
1414
import no.nav.tiltakspenger.saksbehandling.felles.exceptions.TilgangException
15-
import no.nav.tiltakspenger.saksbehandling.felles.sikkerlogg
1615
import no.nav.tiltakspenger.saksbehandling.routes.exceptionhandling.Standardfeil.ikkeFunnet
1716
import no.nav.tiltakspenger.saksbehandling.routes.exceptionhandling.Standardfeil.ikkeImplementert
1817
import no.nav.tiltakspenger.saksbehandling.routes.exceptionhandling.Standardfeil.ikkeTilgang
@@ -26,8 +25,7 @@ object ExceptionHandler {
2625
cause: Throwable,
2726
) {
2827
val uri = call.request.uri
29-
logger.error(RuntimeException("Trigger stacktrace for enklere debug.")) { "Ktor mottok exception i ytterste lag. Uri: $uri. Se sikkerlogg mer kontekst." }
30-
sikkerlogg.error(cause) { "Ktor mottok exception i ytterste lag. Uri: $uri." }
28+
logger.error(cause) { "Ktor mottok exception i ytterste lag. Uri: $uri." }
3129
when (cause) {
3230
is IllegalStateException -> {
3331
call.respond500InternalServerError(serverfeil())

0 commit comments

Comments
 (0)