diff --git a/src/connections.c b/src/connections.c index f3c2f97..77e8b0e 100644 --- a/src/connections.c +++ b/src/connections.c @@ -393,6 +393,7 @@ int updateConnection(Connection *conn, Sitefile *site) { return 1; } received = recvStream(conn->stream, buff, sizeof(buff)); + createFormatLog("Received %ld bytes", received); if (received < 0) return errno != EAGAIN; if (received == 0) diff --git a/src/runner.c b/src/runner.c index a335b92..c038290 100644 --- a/src/runner.c +++ b/src/runner.c @@ -88,13 +88,8 @@ void runServer(int connfd, Sitefile *site, int *pending, int id, for (;;) { poll(fds, connCount, -1); - { - char log[200]; - sprintf(log, -"poll() finished with %d connections", - connCount); - createLog(log); - } + + createFormatLog("poll() finished with %d connections", connCount); for (i = 1; i < connCount; i++) { if (fds[i].revents & POLLIN) {