Close #169 修正写日志时传入错误日志句柄指针的问题。
This commit is contained in:
@@ -127,7 +127,7 @@ static void watchdog_kni_eventcb(struct bufferevent *bev, short what, void *ctx)
|
|||||||
struct watchdog_kni * __ctx = (struct watchdog_kni *)ctx;
|
struct watchdog_kni * __ctx = (struct watchdog_kni *)ctx;
|
||||||
if (what & BEV_EVENT_CONNECTED)
|
if (what & BEV_EVENT_CONNECTED)
|
||||||
{
|
{
|
||||||
TFE_LOG_INFO(__ctx->bev, "KNI watchdog connection is established.");
|
TFE_LOG_INFO(__ctx->logger, "KNI watchdog connection is established.");
|
||||||
__ctx->conn_state = CONN_STATE_CONNECTED;
|
__ctx->conn_state = CONN_STATE_CONNECTED;
|
||||||
__ctx->retry_times = 0;
|
__ctx->retry_times = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user