From 4c83a3bf36846c9fb736f79c506eb557ae74be48 Mon Sep 17 00:00:00 2001 From: Mystery0 Date: Mon, 26 Jun 2023 23:09:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BD=91=E7=AB=99=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=88=87=E5=89=B2=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=A4=B1=E8=B4=A5=E6=97=B6=E6=89=93=E5=8D=B0=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=8E=9F=E5=9B=A0=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=8E=92?= =?UTF-8?q?=E6=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/cronjob_helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/cronjob_helper.go b/backend/app/service/cronjob_helper.go index 7c31894a1..d6e4cec3b 100644 --- a/backend/app/service/cronjob_helper.go +++ b/backend/app/service/cronjob_helper.go @@ -356,7 +356,7 @@ func (u *CronjobService) handleCutWebsiteLog(cronjob *model.Cronjob, startTime t dstName := fmt.Sprintf("%s_log_%s.gz", website.PrimaryDomain, startTime.Format("20060102150405")) filePaths = append(filePaths, path.Join(dstLogDir, dstName)) if err = fileOp.Compress([]string{srcAccessLogPath, srcErrorLogPath}, dstLogDir, dstName, files.Gz); err != nil { - global.LOG.Errorf("There was an error in compressing the website[%s] access.log", website.PrimaryDomain) + global.LOG.Errorf("There was an error in compressing the website[%s] access.log, err: %v", website.PrimaryDomain, err) } else { _ = fileOp.WriteFile(srcAccessLogPath, strings.NewReader(""), 0755) _ = fileOp.WriteFile(srcErrorLogPath, strings.NewReader(""), 0755)