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

Ensure we capture http and trace related logs
pull/564/head
Kubernetes Prow Robot 2019-01-03 15:52:06 -08:00 committed by GitHub
commit 18778ea4a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -17,10 +17,12 @@ limitations under the License.
package framework
import (
"flag"
"net"
"net/http"
"net/http/httptest"
"path"
"strconv"
"time"
"github.com/go-openapi/spec"
@ -112,6 +114,13 @@ func startMasterOrDie(masterConfig *master.Config, incomingServer *httptest.Serv
var m *master.Master
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 {
s = incomingServer
} else {