Skip to content

Commit 3882819

Browse files
authored
fix: debug keyword use package.name + filename (#13)
`@eggjs/router:Router`
1 parent 9bff365 commit 3882819

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Layer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type {
99
ParamMiddlewareFunc,
1010
} from './types.js';
1111

12-
const debug = debuglog('egg-router:layer');
12+
const debug = debuglog('@eggjs/router:Layer');
1313

1414
export interface LayerOptions {
1515
prefix?: string;

src/Router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import methods from 'methods';
1010
import { Layer, LayerURLOptions } from './Layer.js';
1111
import { MiddlewareFunc, MiddlewareFuncWithRouter, Next, ParamMiddlewareFunc, ResourcesController } from './types.js';
1212

13-
const debug = debuglog('egg-router:router');
13+
const debug = debuglog('@eggjs/router:Router');
1414

1515
export type RouterMethod = typeof methods[0];
1616

0 commit comments

Comments
 (0)