Skip to content

Commit

Permalink
fix: 修复日志注入问题
Browse files Browse the repository at this point in the history
  • Loading branch information
142vip.cn committed Nov 15, 2023
1 parent 1dd3085 commit 4cd71ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/koa/koa-run-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ app.use(async(ctx, next) => {
const middleRes1 = await next()
console.log('middleware1===>', middleRes1)
const rt = ctx.response.get('X-Response-Time')
console.log(`${ctx.method} ${ctx.url} - ${rt}`)
console.log(`请求信息:${ctx.method} ${ctx.url} - ${rt}`)
return 'back middleware1 result'
})

Expand Down

0 comments on commit 4cd71ba

Please sign in to comment.