diff options
author | Jamie Liu <jamieliu@google.com> | 2019-11-01 11:43:33 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-01 11:45:02 -0700 |
commit | 5694bd080e0e95ba18cbf77038f450fe33b9f8df (patch) | |
tree | 3e4542e3cb244825cd4507ae73b12c8553e3fcaf /pkg/p9 | |
parent | af6af2c34131c4ec5e3195be99c1deb6a2669c06 (diff) |
Don't log "p9.channel.service: flipcall connection shutdown".
This gets quite spammy, especially in tests.
PiperOrigin-RevId: 277970468
Diffstat (limited to 'pkg/p9')
-rw-r--r-- | pkg/p9/server.go | 6 |
1 files changed, 5 insertions, 1 deletions
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) + } } }() } |