Skip to content

Commit

Permalink
fix: use app.logger instead of ctx.logger (#5246)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Aug 1, 2023
1 parent 5ccee48 commit b700fb9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/core/base_context_logger.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
'use strict';

const CALL = Symbol('BaseContextLogger#call');

class BaseContextLogger {

/**
* @class
* @param {Context} ctx - context instance
Expand All @@ -24,7 +21,7 @@ class BaseContextLogger {
if (this.pathName && typeof args[0] === 'string') {
args[0] = `[${this.pathName}] ${args[0]}`;
}
this.ctx.logger[method](...args);
this.ctx.app.logger[method](...args);
}

/**
Expand Down

0 comments on commit b700fb9

Please sign in to comment.