From a568baf4fac09e9dbdd577814707ea7e7aae78ad Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 12 Apr 2016 13:47:56 +1000 Subject: [PATCH] Increase verbosity of connector drop message for passthroughs --- src/connector.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/connector.c b/src/connector.c index ea5144f9..dd25a686 100644 --- a/src/connector.c +++ b/src/connector.c @@ -348,6 +348,7 @@ out: /* Client must hold a reference count */ static int drop_client(cdata_t *cdata, client_instance_t *client) { + bool passthrough = client->passthrough; int64_t client_id = client->id; int fd = -1; @@ -355,8 +356,11 @@ static int drop_client(cdata_t *cdata, client_instance_t *client) fd = __drop_client(cdata, client); ck_wunlock(&cdata->lock); - if (fd > -1) - LOGINFO("Connector dropped client %"PRId64" fd %d", client_id, fd); + if (fd > -1) { + if (passthrough) + LOGNOTICE("Connector dropped passthrough %"PRId64, client_id); + LOGDEBUG("Connector dropped fd %d", fd); + } return fd; }