fix: ?no-history flag and improve /logs monitoring docs (#721)

- improve logging documentation 
- small tweaks for edge case issues in upstream and log requests
This commit is contained in:
Marcus
2026-04-30 00:50:36 -07:00
committed by GitHub
parent fd3c28ffc5
commit 5b4beaceef
4 changed files with 68 additions and 3 deletions
+7
View File
@@ -32,6 +32,13 @@ func (pm *ProxyManager) streamLogsHandler(c *gin.Context) {
c.Header("X-Accel-Buffering", "no")
logMonitorId := strings.TrimPrefix(c.Param("logMonitorID"), "/")
// Handle case where query string might be included in the parameter
// (can happen with catch-all routes on some versions/setups)
if idx := strings.Index(logMonitorId, "?"); idx != -1 {
logMonitorId = logMonitorId[:idx]
}
logger, err := pm.getLogger(logMonitorId)
if err != nil {
c.String(http.StatusBadRequest, err.Error())