Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #271 from midwayjs/feat/support_egg_logger_2
Browse files Browse the repository at this point in the history
feat: support egg-logger 2.x
  • Loading branch information
czy88840616 authored Oct 16, 2018
2 parents e2d20a0 + 71be753 commit 517a66e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/hook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/node": "^8.5.2",
"bluebird": "^3.5.1",
"chai": "^4.1.2",
"egg-logger": "^1.6.0",
"egg-logger": "^2.0.1",
"globby": "^6.1.0",
"ioredis": "^3.2.2",
"log4js": "^3.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/hook/src/patch/EggLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class EggLoggerPatcher extends Patcher {
const self = this;
const traceManager = this.getTraceManager();

this.hook('^1.6.x', (loadModule) => {
this.hook('^2.x||^1.6.x', (loadModule) => {
const logger = loadModule('lib/logger.js');

self.getShimmer().wrap(logger.prototype, 'log', function logWrapper(log) {
Expand Down

0 comments on commit 517a66e

Please sign in to comment.