From 136f30fc92f92bd11ecced6fb3f427694f37bb86 Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Wed, 20 Apr 2022 12:21:24 -0700 Subject: [PATCH] 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 --- wgengine/monitor/monitor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wgengine/monitor/monitor.go b/wgengine/monitor/monitor.go index a954867fe..914e73a00 100644 --- a/wgengine/monitor/monitor.go +++ b/wgengine/monitor/monitor.go @@ -316,8 +316,9 @@ func (m *Mon) debounce() { m.ifState = curState 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, - jsonSummary(oldState), jsonSummary(curState)) + m.logf("[unexpected] network state changed, but stringification didn't: %v", s1) + 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.