https://kotlinlang.org logo
Title
p

Peter Brottveit Bock

05/18/2021, 9:54 AM
Hey! I’m trying to debug a 403, and wonder if there is any way to make ktor log the steps it takes through the pipeline.
I have called
Routing.trace
, but seems routing is never reached, as there is no log entry from it.
I’m using ktor-auth-jwt, and have tried to add a breakpoint in the handler in the authentication feature, but the breakpoint is never reached.
b

bartvh

05/18/2021, 11:47 AM
Don't know any readily available solutions/feature, but I think you could add your own logging interceptor to each phase in the pipeline.