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:
parent
0457b13043
commit
f95ad5a280
@ -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 {
|
||||
if !strings.HasSuffix(err.Error(), "transport is closing") {
|
||||
log.G(r.eventsContext).WithError(err).Error("get event from shim")
|
||||
}
|
||||
return
|
||||
}
|
||||
var et containerd.EventType
|
||||
|
Loading…
Reference in New Issue
Block a user