From b297a35632f23586bd0b26c864d6eeae3fc259bc Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 4 Jun 2014 19:59:23 +1000 Subject: [PATCH] Remove unused buffer ram in send_client and demote messages to info level only --- src/connector.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/connector.c b/src/connector.c index 85f7ddb0..cfa96e3a 100644 --- a/src/connector.c +++ b/src/connector.c @@ -401,9 +401,10 @@ static void send_client(conn_instance_t *ci, int id, char *buf) if (unlikely(fd == -1)) { if (client) - LOGWARNING("Client id %d disconnected", id); + LOGINFO("Client id %d disconnected", id); else - LOGWARNING("Connector failed to find client id %d", id); + LOGINFO("Connector failed to find client id %d to send to", id); + free(buf); return; } @@ -481,7 +482,7 @@ retry: } client = client_by_id(ci, client_id); if (unlikely(!client)) { - LOGWARNING("Connector failed to find client id: %d", client_id); + LOGINFO("Connector failed to find client id %d to drop", client_id); goto retry; } ret = drop_client(ci, client);