From f95ad5a280f4bc606ef2def5b053ba1b2a71ee1e Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Wed, 10 May 2017 15:13:56 -0700 Subject: [PATCH] Don't print the transport closing error for shim events Signed-off-by: Kenfe-Mickael Laventure --- linux/runtime.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/runtime.go b/linux/runtime.go index 818a71d84..613d9a522 100644 --- a/linux/runtime.go +++ b/linux/runtime.go @@ -10,6 +10,7 @@ import ( "io/ioutil" "os" "path/filepath" + "strings" "time" "github.com/containerd/containerd" @@ -192,7 +193,9 @@ func (r *Runtime) forward(events shim.Shim_EventsClient) { for { e, err := events.Recv() if err != nil { - log.G(r.eventsContext).WithError(err).Error("get event from shim") + if !strings.HasSuffix(err.Error(), "transport is closing") { + log.G(r.eventsContext).WithError(err).Error("get event from shim") + } return } var et containerd.EventType