From 52a48803682f277aead013fa9263e144b5d446ef Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sun, 16 Jun 2024 12:43:51 +0800 Subject: [PATCH] fix: debug keyword use package.name + filename `@eggjs/router:Router` --- src/Layer.ts | 2 +- src/Router.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Layer.ts b/src/Layer.ts index 2d4b4a1..02d4480 100644 --- a/src/Layer.ts +++ b/src/Layer.ts @@ -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; diff --git a/src/Router.ts b/src/Router.ts index 116cc60..c857569 100644 --- a/src/Router.ts +++ b/src/Router.ts @@ -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];