mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-07 08:07:42 +00:00
wgengine/wglog: drop 1/s "interface is up" messages.
Fixes #1388. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
188bb14269
commit
d038a5295d
@ -40,6 +40,11 @@ func NewLogger(logf logger.Logf) *Logger {
|
|||||||
// Drop. See https://github.com/tailscale/tailscale/issues/1239.
|
// Drop. See https://github.com/tailscale/tailscale/issues/1239.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if strings.Contains(msg, "Interface up requested") || strings.Contains(msg, "Interface down requested") {
|
||||||
|
// Drop. Logs 1/s constantly while the tun device is open.
|
||||||
|
// See https://github.com/tailscale/tailscale/issues/1388.
|
||||||
|
return
|
||||||
|
}
|
||||||
r := ret.replacer.Load()
|
r := ret.replacer.Load()
|
||||||
if r == nil {
|
if r == nil {
|
||||||
// No replacements specified; log as originally planned.
|
// No replacements specified; log as originally planned.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user