Merge pull request #807 from Random-Liu/log-task-exit-event

Log task exit event.
This commit is contained in:
Lantao Liu 2018-06-08 20:07:04 -07:00 committed by GitHub
commit d7abb5b489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,7 @@ func (em *eventMonitor) handleEvent(any interface{}) error {
// TODO(random-liu): [P2] Handle containerd-shim exit.
case *eventtypes.TaskExit:
e := any.(*eventtypes.TaskExit)
logrus.Infof("TaskExit event %+v", e)
cntr, err := em.containerStore.Get(e.ContainerID)
if err == nil {
if err := handleContainerExit(ctx, e, cntr); err != nil {