From 4ce36febe3a63a45198e2fe24b46fc371ee3f6e5 Mon Sep 17 00:00:00 2001 From: Gady Piazza Date: Wed, 12 Jul 2023 11:56:16 +0300 Subject: [PATCH] fix: remove deprecated debuglog --- lib/job.js | 2 +- lib/queue.js | 2 +- package.json | 1 - yarn.lock | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/job.js b/lib/job.js index 6cc5b03e5..6a3606974 100644 --- a/lib/job.js +++ b/lib/job.js @@ -3,7 +3,7 @@ const _ = require('lodash'); const utils = require('./utils'); const scripts = require('./scripts'); -const debuglog = require('debuglog')('bull'); +const debuglog = require('util').debuglog('bull'); const errors = require('./errors'); const backoffs = require('./backoffs'); diff --git a/lib/queue.js b/lib/queue.js index 45d3cb1aa..952349a48 100755 --- a/lib/queue.js +++ b/lib/queue.js @@ -18,7 +18,7 @@ const TimerManager = require('./timer-manager'); const { promisify } = require('util'); const { pTimeout } = require('./p-timeout'); const semver = require('semver'); -const debuglog = require('debuglog')('bull'); +const debuglog = require('util').debuglog('bull'); const uuid = require('uuid'); const commands = require('./commands/'); diff --git a/package.json b/package.json index a97a5bc57..1d80a272f 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "readmeFilename": "README.md", "dependencies": { "cron-parser": "^4.2.1", - "debuglog": "^1.0.0", "get-port": "^5.1.1", "ioredis": "^5.3.2", "lodash": "^4.17.21", diff --git a/yarn.lock b/yarn.lock index 1fee0fb57..37db541ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1891,7 +1891,7 @@ debug@^4.3.4: dependencies: ms "2.1.2" -debuglog@^1.0.0, debuglog@^1.0.1: +debuglog@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=