1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

chore: improve debug statements

This commit is contained in:
Ruben Bridgewater
2017-05-26 10:28:27 +02:00
parent 4d103b4aee
commit 4182059b7c
2 changed files with 15 additions and 10 deletions

View File

@@ -188,7 +188,7 @@ function authCallback (self, pass) {
}
RedisClient.prototype.auth = function auth (pass) {
debug(`Sending auth to ${this.address} id ${this.connectionId}`)
debug('Sending auth to %s id %s', this.address, this.connectionId)
// Stash auth for connect and reconnect.
this.authPass = pass
@@ -201,7 +201,7 @@ RedisClient.prototype.auth = function auth (pass) {
// Only works with batch, not in a transaction
Multi.prototype.auth = function auth (pass) {
debug(`Sending auth to ${this.address} id ${this.connectionId}`)
debug('Sending auth to %s id %s', this.address, this.connectionId)
// Stash auth for connect and reconnect.
this.authPass = pass