Skip to content

Commit

Permalink
fix: ctx.getLogger does not overwrite success (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Apr 14, 2022
1 parent 76e5f65 commit 5fcb1c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/web/app/extend/context.js
Expand Up @@ -15,6 +15,10 @@ module.exports = {
return this['starttime'];
},

getLogger(name) {
return this.app.createContextLogger(this, name);
},

get logger() {
if (this[ctxLogger]) {
return this[ctxLogger];
Expand Down

0 comments on commit 5fcb1c6

Please sign in to comment.