[ADD] add record print information

This commit is contained in:
zhoujunhao 2018-06-11 11:16:43 +08:00
parent 3d9b74719c
commit 3dd710ae49

View File

@ -70,13 +70,14 @@ func (t *Manager) Start(errchan chan error) error {
for _, v := range results {
serviceIDList = append(serviceIDList, v.ServiceID)
}
logrus.Info("More than 5 versions of the application",len(serviceIDList))
versions, err := db.GetManager().VersionInfoDao().GetVersionInfo(datetime, serviceIDList)
if err != nil {
logrus.Error(err)
}
for _, v := range versions {
logrus.Info(v.CreatedAt,v.ID)
if v.DeliveredType == "image" {
imagePath := v.DeliveredPath
err := sources.ImageRemove(t.dclient, imagePath) //remove image