Skip to content

Commit

Permalink
fix: context logger mixin (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 authored Feb 2, 2021
1 parent 11716fe commit 21c78c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/web/src/framework/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ export class MidwayWebFramework extends MidwayKoaBaseFramework<

if (this.app.config.midwayFeature['replaceEggLogger']) {
// if use midway logger will be use midway custom context logger
Object.defineProperty(this.app, 'ContextLogger', {
get() {
return self.BaseContextLoggerClass;
},
this.app.beforeStart(() => {
this.app.ContextLogger = self.BaseContextLoggerClass;
});
}

Expand Down

0 comments on commit 21c78c2

Please sign in to comment.