From 9f8185f5c80bc98bdbc631b90ccf13929d6a0cbc Mon Sep 17 00:00:00 2001 From: Shivshankar Date: Sat, 14 Sep 2024 00:43:20 -0400 Subject: [PATCH] Update valkey-benchmark log output to reference 'server' instead of 'Redis' (#1029) Replaced "Could not connect to Redis" with "Could not connect to server" in the log output for connection errors in `getRedisContext` and `createClient`. Signed-off-by: Shivshankar-Reddy --- src/valkey-benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/valkey-benchmark.c b/src/valkey-benchmark.c index cccc872cd1..3cc82148f0 100644 --- a/src/valkey-benchmark.c +++ b/src/valkey-benchmark.c @@ -238,7 +238,7 @@ static redisContext *getRedisContext(const char *ip, int port, const char *hosts else ctx = redisConnectUnix(hostsocket); if (ctx == NULL || ctx->err) { - fprintf(stderr, "Could not connect to Redis at "); + fprintf(stderr, "Could not connect to server at "); char *err = (ctx != NULL ? ctx->errstr : ""); if (hostsocket == NULL) fprintf(stderr, "%s:%d: %s\n", ip, port, err); @@ -648,7 +648,7 @@ static client createClient(char *cmd, size_t len, client from, int thread_id) { c->context = redisConnectUnixNonBlock(config.hostsocket); } if (c->context->err) { - fprintf(stderr, "Could not connect to Redis at "); + fprintf(stderr, "Could not connect to server at "); if (config.hostsocket == NULL || is_cluster_client) fprintf(stderr, "%s:%d: %s\n", ip, port, c->context->errstr); else