diff --git a/cmd/internal/core/phone-home.go b/cmd/internal/core/phone-home.go index 4f968f06..4d1f8691 100644 --- a/cmd/internal/core/phone-home.go +++ b/cmd/internal/core/phone-home.go @@ -10,9 +10,10 @@ import ( "sync" "time" + "google.golang.org/protobuf/types/known/timestamppb" + "github.com/metal-stack/go-lldpd/pkg/lldp" v1 "github.com/metal-stack/metal-api/pkg/api/v1" - "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -111,7 +112,7 @@ func (c *Core) send(ctx context.Context, event *v1.EventServiceSendRequest) (*v1 return nil, err } if s != nil { - c.log.Info("event", "send", s.Events, "failed", s.Failed) + c.log.Info("event", "send", s.GetEvents(), "failed", s.GetFailed()) } return s, err } @@ -137,7 +138,7 @@ func (c *Core) phoneHome(ctx context.Context, msgs []phoneHomeMessage) { c.metrics.CountError("send-provisioning") } if s != nil { - c.log.Info("phonehome sent", "machines", s.Events) + c.log.Info("phonehome sent", "machines", s.GetEvents()) } }