Skip to content

Commit a6564ad

Browse files
committed
avoid logging function reference
1 parent 89ccb3a commit a6564ad

File tree

1 file changed

+8
-2
lines changed
  • router/src/main/kotlin/com/github/mduesterhoeft/router

1 file changed

+8
-2
lines changed

router/src/main/kotlin/com/github/mduesterhoeft/router/Router.kt

+8-2
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,16 @@ fun Filter.then(next: HandlerFunction<*, *>): HandlerFunction<*, *> = { this(nex
8080

8181
typealias HandlerFunction<I, T> = (request: Request<I>) -> ResponseEntity<T>
8282

83-
data class RouterFunction<I, T>(
83+
class RouterFunction<I, T>(
8484
val requestPredicate: RequestPredicate,
8585
val handler: HandlerFunction<I, T>
86-
)
86+
87+
88+
) {
89+
override fun toString(): String {
90+
return "RouterFunction(requestPredicate=$requestPredicate)"
91+
}
92+
}
8793

8894
data class Request<I>(val apiRequest: APIGatewayProxyRequestEvent, val body: I, val pathPattern: String = apiRequest.path) {
8995

0 commit comments

Comments
 (0)