Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 17, 2024
1 parent e912c6e commit 7a3d32d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ function getCalleeFromStack(withLine?: boolean, stackIndex?: number) {

export default {
deprecated(message: string) {
// console.trace('[@eggjs/core:deprecated] %s', message);
console.warn('[@eggjs/core:deprecated] %s', message);
if (debug.enabled) {
console.trace('[@eggjs/core:deprecated] %s', message);
} else {
console.warn('[@eggjs/core:deprecated] %s', message);
console.warn('[@eggjs/core:deprecated] set NODE_DEBUG=@eggjs/core:utils can show call stack');
}
},

extensions,
Expand Down

0 comments on commit 7a3d32d

Please sign in to comment.