Skip to content

Commit 19456e7

Browse files
committed
avoid logging function reference
1 parent 72d550d commit 19456e7

File tree

1 file changed

+6
-2
lines changed
  • router/src/main/kotlin/io/moia/router

1 file changed

+6
-2
lines changed

router/src/main/kotlin/io/moia/router/Router.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,14 @@ fun Filter.then(next: HandlerFunction<*, *>): HandlerFunction<*, *> = { this(nex
8282

8383
typealias HandlerFunction<I, T> = (request: Request<I>) -> ResponseEntity<T>
8484

85-
data class RouterFunction<I, T>(
85+
class RouterFunction<I, T>(
8686
val requestPredicate: RequestPredicate,
8787
val handler: HandlerFunction<I, T>
88-
)
88+
) {
89+
override fun toString(): String {
90+
return "RouterFunction(requestPredicate=$requestPredicate)"
91+
}
92+
}
8993

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

0 commit comments

Comments
 (0)