Unverified Commit 18778ea4 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #72521 from dims/ensure-capture-of-http-and-trace-logs

Ensure we capture http and trace related logs
parents 78f22e1d e6f8e51c
...@@ -17,10 +17,12 @@ limitations under the License. ...@@ -17,10 +17,12 @@ limitations under the License.
package framework package framework
import ( import (
"flag"
"net" "net"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"path" "path"
"strconv"
"time" "time"
"github.com/go-openapi/spec" "github.com/go-openapi/spec"
...@@ -112,6 +114,13 @@ func startMasterOrDie(masterConfig *master.Config, incomingServer *httptest.Serv ...@@ -112,6 +114,13 @@ func startMasterOrDie(masterConfig *master.Config, incomingServer *httptest.Serv
var m *master.Master var m *master.Master
var s *httptest.Server var s *httptest.Server
// Ensure we log at least level 4
v := flag.Lookup("v").Value
level, _ := strconv.Atoi(v.String())
if level < 4 {
v.Set("4")
}
if incomingServer != nil { if incomingServer != nil {
s = incomingServer s = incomingServer
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment