diff --git a/livestream/main.go b/livestream/main.go index 6a8e147c53..bafae96575 100644 --- a/livestream/main.go +++ b/livestream/main.go @@ -127,13 +127,11 @@ func main() { } else { teamId = "" - log.Println("~~~~ Looking for auth header") authHeader := c.Request().Header.Get("Authorization") if authHeader == "" { return errors.New("authorization header is required") } - log.Println("~~~~ decoding auth header") claims, err := decodeAuthToken(authHeader) if err != nil { return err @@ -141,7 +139,6 @@ func main() { teamId = strconv.Itoa(int(claims["team_id"].(float64))) token = fmt.Sprint(claims["api_token"]) - log.Printf("~~~~ team found %s", teamId) if teamId == "" { return errors.New("teamId is required unless geo=true") } diff --git a/livestream/served.go b/livestream/served.go index dc9c89b967..cd17fcf2c3 100644 --- a/livestream/served.go +++ b/livestream/served.go @@ -51,7 +51,7 @@ func statsHandler(stats *Stats) func(c echo.Context) error { resp := resp{ Error: "no stats", } - return c.JSON(http.StatusNotFound, resp) + return c.JSON(http.StatusOK, resp) } siteStats := resp{