Browse Source

Increase verbosity of connector drop message for passthroughs

master
Con Kolivas 9 years ago
parent
commit
a568baf4fa
  1. 8
      src/connector.c

8
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;
}

Loading…
Cancel
Save