From 5694bd080e0e95ba18cbf77038f450fe33b9f8df Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Fri, 1 Nov 2019 11:43:33 -0700 Subject: Don't log "p9.channel.service: flipcall connection shutdown". This gets quite spammy, especially in tests. PiperOrigin-RevId: 277970468 --- pkg/p9/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkg/p9') diff --git a/pkg/p9/server.go b/pkg/p9/server.go index e717e6161..40b8fa023 100644 --- a/pkg/p9/server.go +++ b/pkg/p9/server.go @@ -453,7 +453,11 @@ func (cs *connState) initializeChannels() (err error) { go func() { // S/R-SAFE: Server side. defer cs.channelWg.Done() if err := res.service(cs); err != nil { - log.Warningf("p9.channel.service: %v", err) + // Don't log flipcall.ShutdownErrors, which we expect to be + // returned during server shutdown. + if _, ok := err.(flipcall.ShutdownError); !ok { + log.Warningf("p9.channel.service: %v", err) + } } }() } -- cgit v1.2.3