Skip to content

Commit

Permalink
fix url logging (#4)
Browse files Browse the repository at this point in the history
* fix url logging

* update tasks
  • Loading branch information
justinmchase committed Aug 6, 2023
1 parent 0712ff4 commit add3cf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tasks": {
"test": "deno test src",
"check": "deno fmt && deno lint && deno test",
"example": "deno run -A example/main.ts",
"example:web": "deno run -A example/main.ts web",
"example:job": "deno run -A example/main.ts job",
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/log.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export class LogController<
const { response: { status } } = ctx;
ctx.state.context.log.info(
"request",
`${status} ${method} ${url} ${ms}`,
`${status} ${method} ${url.pathname} ${ms}`,
{
status,
method,
url,
url: `${url}`,
ms,
ip,
},
Expand Down

0 comments on commit add3cf4

Please sign in to comment.