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.*
18
18
import io.ktor.server.routing.*
19
19
import io.github.oshai.kotlinlogging.KotlinLogging
20
20
import io.ktor.serialization.jackson.*
21
- import io.ktor.server.plugins .*
21
+ import io.ktor.server.application.hooks .*
22
22
import no.nav.tms.common.metrics.installTmsMicrometerMetrics
23
23
import no.nav.tms.token.support.idporten.sidecar.LevelOfAssurance
24
24
import no.nav.tms.token.support.idporten.sidecar.idPorten
@@ -50,6 +50,16 @@ fun Application.varselApi(
50
50
val securelog = KotlinLogging .logger(" secureLog" )
51
51
val log = KotlinLogging .logger{}
52
52
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
+
53
63
install(DefaultHeaders )
54
64
authInstaller()
55
65
You can’t perform that action at this time.
0 commit comments