Skip to content

Commit

Permalink
fix(index): remove onBeforeHandle for avoid repeat logging
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Mar 19, 2024
1 parent 361ac6b commit 4c6f0b9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export const logger = (options?: Options): Elysia => {
.onRequest(ctx => {
ctx.store = { beforeTime: process.hrtime.bigint() }
})
.onBeforeHandle({ as: 'global' }, ({ request, store }) => {
log.log('INFO', request, {}, store as { beforeTime: bigint })
})
.onAfterHandle({ as: 'global' }, ({ request, store }) => {
const logStr: string[] = []

Expand Down

0 comments on commit 4c6f0b9

Please sign in to comment.