Browse Source

Only add strerro if errno != 0

master
Con Kolivas 10 years ago
parent
commit
a493539a75
  1. 4
      src/connector.c

4
src/connector.c

@ -204,8 +204,8 @@ retry:
/* We should have something to read if called since poll set
* this fd's revents status so if there's nothing it means the
* client has disconnected. */
LOGINFO("Client fd %d disconnected with ret %d errno %d: %s", client->fd,
ret, errno, strerror(errno));
LOGINFO("Client fd %d disconnected with ret %d errno %d %s", client->fd,
ret, errno, errno ? strerror(errno) : "");
invalidate_client(ckp, ci, client);
return;
}

Loading…
Cancel
Save