We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1d61c4 commit 40880efCopy full SHA for 40880ef
assembly/src/main/kotlin/com/ps/personne/config/ExceptionHandlingConfig.kt
@@ -6,12 +6,14 @@ import com.ps.personne.problem.respondProblem
6
import io.ktor.http.HttpStatusCode
7
import io.ktor.server.application.Application
8
import io.ktor.server.application.install
9
+import io.ktor.server.application.log
10
import io.ktor.server.plugins.statuspages.StatusPages
11
12
object ExceptionHandlingConfig {
13
fun Application.configureExceptionHandling() {
14
install(StatusPages) {
15
exception<Throwable> { call, cause ->
16
+ call.application.log.error("Unhandled exception", cause)
17
call.respondProblem(
18
HttpStatusCode.InternalServerError,
19
Problem.of(
0 commit comments