mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 10:58:39 +00:00
wgengine/monitor: split the unexpected stringification log line
It unfortuantely gets truncated because it's too long, split it into 3 different log lines to circumvent truncation. Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
8e40bfc6ea
commit
136f30fc92
@ -316,8 +316,9 @@ func (m *Mon) debounce() {
|
|||||||
m.ifState = curState
|
m.ifState = curState
|
||||||
|
|
||||||
if s1, s2 := oldState.String(), curState.String(); s1 == s2 {
|
if s1, s2 := oldState.String(), curState.String(); s1 == s2 {
|
||||||
m.logf("[unexpected] network state changed, but stringification didn't: %v\nold: %s\nnew: %s\n", s1,
|
m.logf("[unexpected] network state changed, but stringification didn't: %v", s1)
|
||||||
jsonSummary(oldState), jsonSummary(curState))
|
m.logf("[unexpected] old: %s", jsonSummary(oldState))
|
||||||
|
m.logf("[unexpected] new: %s", jsonSummary(curState))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// See if we have a queued or new time jump signal.
|
// See if we have a queued or new time jump signal.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user