diff --git a/lib/router.js b/lib/router.js index 3c920d7..0dae41e 100644 --- a/lib/router.js +++ b/lib/router.js @@ -5,15 +5,12 @@ * @link https://github.com/alexmingoia/koa-router */ -const { debuglog } = require('util'); - const compose = require('koa-compose'); const HttpError = require('http-errors'); const methods = require('methods'); const { pathToRegexp } = require('path-to-regexp'); const Layer = require('./layer'); - -const debug = debuglog('koa-router'); +const debug = require('debug')('koa-router'); /** * @module koa-router diff --git a/package.json b/package.json index bb0fbaa..f64097d 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@koajs" ], "dependencies": { + "debug": "^4.3.4", "http-errors": "^2.0.0", "koa-compose": "^4.1.0", "methods": "^1.1.2",