diff --git a/lib/redis.js b/lib/redis.js index a5965ae4..d044f1c3 100644 --- a/lib/redis.js +++ b/lib/redis.js @@ -207,7 +207,7 @@ Redis.prototype.parseOptions = function () { * @private */ Redis.prototype.setStatus = function (status, arg) { - debug('status[%s:%s]: %s -> %s', this.options.host, this.options.port, this.status || '[empty]', status); + debug('status[%s]: %s -> %s', (this.options.path ? this.options.path : (this.options.host + ':' + this.options.port)), this.status || '[empty]', status); this.status = status; process.nextTick(this.emit.bind(this, status, arg)); };