Commit 2a045c20 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

http2: change two debug log.Printf calls to vlogf

Fixes golang/go#12742

Change-Id: I04d65b0c68ccb5da5ee90650c7b0593fbdb1d470
Reviewed-on: https://go-review.googlesource.com/15736Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
parent 4b709d93
......@@ -303,7 +303,7 @@ func isBadCipher(cipher uint16) bool {
}
func (sc *serverConn) rejectConn(err ErrCode, debug string) {
log.Printf("REJECTING conn: %v, %s", err, debug)
sc.vlogf("REJECTING conn: %v, %s", err, debug)
// ignoring errors. hanging up anyway.
sc.framer.WriteGoAway(0, err, []byte(debug))
sc.bw.Flush()
......@@ -992,7 +992,7 @@ func (sc *serverConn) processFrame(f Frame) error {
// frame as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.
return ConnectionError(ErrCodeProtocol)
default:
log.Printf("Ignoring frame: %v", f.Header())
sc.vlogf("Ignoring frame: %v", f.Header())
return nil
}
}
......
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