Skip to content

Commit 94bc722

Browse files
committed
refactor: change logging to onBeforeHandle
1 parent 12c97ab commit 94bc722

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
@@ -38,7 +38,7 @@ const app = new Elysia()
3838
}
3939
})
4040
// Logging
41-
.onAfterResponse(({ path, request }) => {
41+
.onBeforeHandle(({ path, request }) => {
4242
console.log(`🦊 ${request.method} - ${path}`);
4343
})
4444
// Mesure request performance

0 commit comments

Comments
 (0)