(request: HttpServerRequest.HttpServerRequest)
| 37 | }; |
| 38 | |
| 39 | const requestPath = (request: HttpServerRequest.HttpServerRequest): string => { |
| 40 | if (URL.canParse(request.url, "http://executor.local")) { |
| 41 | return new URL(request.url, "http://executor.local").pathname; |
| 42 | } |
| 43 | |
| 44 | return request.url.split("?")[0] ?? request.url; |
| 45 | }; |
| 46 | |
| 47 | export const logApiErrorCause = ( |
| 48 | request: HttpServerRequest.HttpServerRequest, |