feat: Better debugging for console
Chart Release / chart (push) Successful in 18s
Server Deploy / deploy (push) Successful in 59s

This commit is contained in:
2026-07-31 16:13:51 +01:00
parent f611cae438
commit 2aa4784518
+7
View File
@@ -3,6 +3,7 @@ package api
import (
"errors"
"fmt"
"log"
"net"
"net/http"
"os"
@@ -147,6 +148,12 @@ func consoleTunnel(c *gin.Context) {
c.JSON(http.StatusConflict, gin.H{"error": "agent_offline"})
return
}
// Logged as well as answered. The client is deliberately told nothing
// specific, but this is the only place the real reason exists — a
// failed dispatch and a relay that was never announced are the same
// generic 500 to the browser, and guacamole then reports the missing
// upgrade as an upstream error, which points at the wrong hop entirely.
log.Printf("console: open relay for server %s: %v", srv.ServerID, err)
c.JSON(http.StatusInternalServerError, gin.H{"error": "could not open relay"})
return
}