Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SuppressWriter ¶
SuppressWriter wraps an io.Writer and drops any Write that contains the suppression string. It is used to silence known-harmless log noise (e.g. Go's net/http "Unsolicited response received on idle HTTP channel" during Unity domain reloads).
func (*SuppressWriter) Write ¶
func (s *SuppressWriter) Write(p []byte) (int, error)
Write implements io.Writer. It drops the write only if the suppression string appears at the start of a line (or the very start of p). This is stricter than bytes.Contains, which would accidentally suppress legitimate log lines that merely include the phrase elsewhere.
Click to show internal directories.
Click to hide internal directories.