(p []byte)
| 285 | } |
| 286 | |
| 287 | func (w *stderrWriter) Write(p []byte) (int, error) { |
| 288 | logrus.Debugf("%s%s", w.debugPrefix, string(p)) |
| 289 | w.stderrMu.Lock() |
| 290 | if w.stderr.Len() > 4096 { |
| 291 | w.stderr.Reset() |
| 292 | } |
| 293 | n, err := w.stderr.Write(p) |
| 294 | w.stderrMu.Unlock() |
| 295 | return n, err |
| 296 | } |