Skip to content

Commit

Permalink
Update valkey-benchmark log output to reference 'server' instead of '…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
Shivshankar-Reddy authored Sep 14, 2024
1 parent 1739038 commit 9f8185f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/valkey-benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9f8185f

Please sign in to comment.