From 50e32eba8629bf34eb2c5c6b2eef693f5f365bec Mon Sep 17 00:00:00 2001 From: fengzero Date: Tue, 6 Dec 2022 02:37:26 +0000 Subject: [PATCH] fix connection log cate --- src/connection/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection/connection.c b/src/connection/connection.c index c73227d2..e5c15e75 100644 --- a/src/connection/connection.c +++ b/src/connection/connection.c @@ -589,7 +589,7 @@ static void conn_connect(neu_conn_t *conn) sizeof(struct sockaddr_in)); if (ret != 0 && errno != EINPROGRESS) { close(fd); - zlog_error(neuron, "connect %s:%d error: %s(%d)", + zlog_error(conn->param.log, "connect %s:%d error: %s(%d)", conn->param.params.tcp_client.ip, conn->param.params.tcp_client.port, strerror(errno), errno);