MCPcopy Index your code
hub / github.com/zalando/skipper / Write

Method Write

skipper.go:1214–1224  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

1212type serverErrorLogWriter struct{}
1213
1214func (*serverErrorLogWriter) Write(p []byte) (int, error) {
1215 m := string(p)
1216 if strings.HasPrefix(m, "http: TLS handshake error") && strings.HasSuffix(m, ": EOF\n") {
1217 log.Debug(m) // https://github.com/golang/go/issues/26918
1218 } else if strings.HasPrefix(m, "http: URL query contains semicolon") {
1219 log.Debug(m) // https://github.com/golang/go/issues/25192
1220 } else {
1221 log.Error(m)
1222 }
1223 return len(p), nil
1224}
1225
1226func newServerErrorLog() *stdlog.Logger {
1227 return stdlog.New(&serverErrorLogWriter{}, "", 0)

Callers

nothing calls this directly

Calls 2

DebugMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected