File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/main/kotlin/no/nav/tms/varsel/api Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import io.ktor.server.response.*
1818import io.ktor.server.routing.*
1919import io.github.oshai.kotlinlogging.KotlinLogging
2020import io.ktor.serialization.jackson.*
21- import io.ktor.server.plugins .*
21+ import io.ktor.server.application.hooks .*
2222import no.nav.tms.common.metrics.installTmsMicrometerMetrics
2323import no.nav.tms.token.support.idporten.sidecar.LevelOfAssurance
2424import no.nav.tms.token.support.idporten.sidecar.idPorten
@@ -50,6 +50,16 @@ fun Application.varselApi(
5050 val securelog = KotlinLogging .logger(" secureLog" )
5151 val log = KotlinLogging .logger{}
5252
53+
54+ install(createRouteScopedPlugin(" test" ){
55+ on(CallSetup ){ call ->
56+ log.info { " Kall mottatt" }
57+ }
58+ on(CallFailed ){ call, cause ->
59+ log.error { " Kall feilet: $cause " }
60+ }
61+ })
62+
5363 install(DefaultHeaders )
5464 authInstaller()
5565
You can’t perform that action at this time.
0 commit comments