chore: add test results section to README and tag routing logs with hostname

This commit is contained in:
2025-12-12 21:33:27 +00:00
parent 8158576fb6
commit 5cea9db29e
2 changed files with 18 additions and 2 deletions
+4 -2
View File
@@ -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);