Skip to content

Commit fee2dde

Browse files
committed
feat(logging): log the request url when it cannot be parsed
1 parent 66c0833 commit fee2dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const server = http.createServer((req, res) => {
1717
const matches = req.url?.match(URL_REGEX)
1818

1919
if (!matches) {
20-
return failRequest('Failed parsing the url')
20+
return failRequest(`Failed parsing path "${req.url}".`)
2121
}
2222

2323
const [_, version, domain, port, image, method, reference]: string[] = matches

0 commit comments

Comments
 (0)