Use log package instead of logrus in eventSink.Write

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-06-23 17:24:09 -07:00
parent f8d3cfbc60
commit 28b7aa5355
No known key found for this signature in database
GPG Key ID: 40CF16616B361216

View File

@ -6,6 +6,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/containerd/containerd/api/services/events/v1"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/namespaces"
goevents "github.com/docker/go-events"
"github.com/pkg/errors"
@ -39,7 +40,7 @@ func (s *eventSink) Write(evt goevents.Event) error {
return err
}
logrus.WithFields(logrus.Fields{
log.G(e.ctx).WithFields(logrus.Fields{
"topic": topic,
"type": eventData.TypeUrl,
"ns": ns,