From ca143021919957ff298e9cc8ef757156d8e0588d Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:40:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=A2=91=E7=B9=81=E6=89=93=E5=8D=B0=E7=9A=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=20(#6219)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/cronjob_helper.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/app/service/cronjob_helper.go b/backend/app/service/cronjob_helper.go index 898fe54c7..3b2c63b37 100644 --- a/backend/app/service/cronjob_helper.go +++ b/backend/app/service/cronjob_helper.go @@ -240,7 +240,6 @@ func (u *CronjobService) handleCutWebsiteLog(cronjob *model.Cronjob, startTime t _ = fileOp.WriteFile(srcErrorLogPath, strings.NewReader(""), 0755) } msg := i18n.GetMsgWithMap("CutWebsiteLogSuccess", map[string]interface{}{"name": website.PrimaryDomain, "path": dstFilePath}) - global.LOG.Infof(msg) msgs = append(msgs, msg) } u.removeExpiredLog(*cronjob) @@ -327,7 +326,6 @@ func (u *CronjobService) uploadCronjobBackFile(cronjob model.Cronjob, accountMap } func (u *CronjobService) removeExpiredBackup(cronjob model.Cronjob, accountMap map[string]cronjobUploadHelper, record model.BackupRecord) { - global.LOG.Infof("start to handle remove expired, retain copies: %d", cronjob.RetainCopies) var opts []repo.DBOption opts = append(opts, commonRepo.WithByFrom("cronjob")) opts = append(opts, backupRepo.WithByCronID(cronjob.ID)) @@ -362,7 +360,6 @@ func (u *CronjobService) removeExpiredBackup(cronjob model.Cronjob, accountMap m } func (u *CronjobService) removeExpiredLog(cronjob model.Cronjob) { - global.LOG.Infof("start to handle remove expired, retain copies: %d", cronjob.RetainCopies) records, _ := cronjobRepo.ListRecord(cronjobRepo.WithByJobID(int(cronjob.ID)), commonRepo.WithOrderBy("created_at desc")) if len(records) <= int(cronjob.RetainCopies) { return