diff --git a/README.md b/README.md index 861ee97..fb4adc7 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,20 @@ make coverage-html # Generate HTML coverage report make valgrind # Run tests with memory leak detection ``` +### Test Results + +``` +Test Results: 559/559 passed + +HEAP SUMMARY: + in use at exit: 0 bytes in 0 blocks + total heap usage: 155,794 allocs, 155,794 frees, 13,900,573 bytes allocated + +All heap blocks were freed -- no leaks are possible + +ERROR SUMMARY: 0 errors from 0 contexts +``` + ## Configuration Configuration is defined in `proxy_config.json`: diff --git a/src/connection.c b/src/connection.c index fb3b37d..fb1e80d 100644 --- a/src/connection.c +++ b/src/connection.c @@ -708,8 +708,10 @@ static void handle_client_read(connection_t *conn) { } } - log_info("[ROUTING-FORWARD] Forwarding request for fd=%d: %s %s", - conn->fd, conn->request.method, conn->request.uri); + char routing_tag[16]; + snprintf(routing_tag, sizeof(routing_tag), "%-15.15s", conn->request.host); + log_info("[%s] Forwarding request for fd=%d: %s %s", + routing_tag, conn->fd, conn->request.method, conn->request.uri); conn->vhost_stats = monitor_get_or_create_vhost_stats(conn->request.host); monitor_record_request_start(conn->vhost_stats, conn->request.is_websocket);