Skip to content

Commit

Permalink
fix: debug keyword use package.name + filename (#13)
Browse files Browse the repository at this point in the history
`@eggjs/router:Router`
  • Loading branch information
fengmk2 authored Jun 16, 2024
1 parent 9bff365 commit 3882819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
ParamMiddlewareFunc,
} from './types.js';

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

export interface LayerOptions {
prefix?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import methods from 'methods';
import { Layer, LayerURLOptions } from './Layer.js';
import { MiddlewareFunc, MiddlewareFuncWithRouter, Next, ParamMiddlewareFunc, ResourcesController } from './types.js';

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

export type RouterMethod = typeof methods[0];

Expand Down

0 comments on commit 3882819

Please sign in to comment.