(request: HttpServerRequest.HttpServerRequest)
| 48 | }; |
| 49 | |
| 50 | const requestPath = (request: HttpServerRequest.HttpServerRequest): string => { |
| 51 | if (URL.canParse(request.url, "http://executor.local")) { |
| 52 | return new URL(request.url, "http://executor.local").pathname; |
| 53 | } |
| 54 | |
| 55 | return request.url.split("?")[0] ?? request.url; |
| 56 | }; |
| 57 | |
| 58 | export const logApiErrorCause = ( |
| 59 | request: HttpServerRequest.HttpServerRequest, |