Don't print the transport closing error for shim events

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-05-10 15:13:56 -07:00
parent 0457b13043
commit f95ad5a280

View File

@ -10,6 +10,7 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"strings"
"time" "time"
"github.com/containerd/containerd" "github.com/containerd/containerd"
@ -192,7 +193,9 @@ func (r *Runtime) forward(events shim.Shim_EventsClient) {
for { for {
e, err := events.Recv() e, err := events.Recv()
if err != nil { 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 return
} }
var et containerd.EventType var et containerd.EventType