Skip to content

Commit 4cd71ba

Browse files
author
142vip.cn
committed
fix: 修复日志注入问题
1 parent 1dd3085 commit 4cd71ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/koa/koa-run-sort.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ app.use(async(ctx, next) => {
99
const middleRes1 = await next()
1010
console.log('middleware1===>', middleRes1)
1111
const rt = ctx.response.get('X-Response-Time')
12-
console.log(`${ctx.method} ${ctx.url} - ${rt}`)
12+
console.log(`请求信息:${ctx.method} ${ctx.url} - ${rt}`)
1313
return 'back middleware1 result'
1414
})
1515

0 commit comments

Comments
 (0)