write_redis plugin: Improve ZREMRANGEBYRANK command debug message
authorBrian Kelly <brianpkelly46@gmail.com>
Fri, 17 Jul 2015 13:22:27 +0000 (09:22 -0400)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 27 Oct 2015 23:04:02 +0000 (00:04 +0100)
src/write_redis.c

index eb4e2c5..fe8994d 100644 (file)
@@ -124,7 +124,7 @@ static int wr_write (const data_set_t *ds, /* {{{ */
   {
     rr = redisCommand (node->conn, "ZREMRANGEBYRANK %s %d %d", key, 0, (-1 * node->max_set_size) - 1);
     if (rr == NULL)
-      WARNING("ZREMRANGEBYRANK command error. database:%d message:%s", node->database, node->conn->errstr);
+      WARNING("ZREMRANGEBYRANK command error. key:%s message:%s", key, node->conn->errstr);
     else
       freeReplyObject (rr);
   }