redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.07k stars 1.19k forks source link

No options were found to turn off all log output #1843

Open solstice-gao opened 6 months ago

solstice-gao commented 6 months ago

No option was found to turn off all log output. Debug is enabled in the source code, but no function is provided to control this parameter. if (debug.enabled) { debug("write command[%s]: %d -> %s(%o)", this._getDescription(), (_b = this.condition) === null || _b === void 0 ? void 0 : _b.select, command.name, command.args); }

luin commented 6 months ago

By default debug.enabled should be falsy unless your DEBUG environment variable matches ioredis.