diff --git a/lib/get-binary.js b/lib/get-binary.js index c826795..b019e30 100644 --- a/lib/get-binary.js +++ b/lib/get-binary.js @@ -1,5 +1,6 @@ 'use strict' +const debug = require('debug')('youtube-dl') const { readFileSync, existsSync } = require('fs') const path = require('path') @@ -8,7 +9,7 @@ const detailsPath = path.join(binPath, 'details') module.exports = () => { if (!existsSync(detailsPath)) { - return console.warn('WARNING: unable to locate `youtube-dl` at ' + binPath) + return debug('unable to locate `youtube-dl` at ' + binPath) } const details = JSON.parse(readFileSync(detailsPath)) diff --git a/package.json b/package.json index fb0704c..a7e7d15 100644 --- a/package.json +++ b/package.json @@ -159,6 +159,7 @@ "youtube" ], "dependencies": { + "debug": "~4.1.1", "execa": "~3.2.0", "hh-mm-ss": "~1.2.0", "mkdirp": "~0.5.1",