fix: add send precheck msg

This commit is contained in:
engigu
2024-01-29 19:17:42 +08:00
parent f711ef24de
commit 76876bd74b
3 changed files with 70 additions and 28 deletions
+6 -1
View File
@@ -15,7 +15,12 @@ var ClearLogsTaskId cron.EntryID
// ClearLogs 清除日志的定时任务
func ClearLogs() {
var errStr string
sm := send_message_service.SendMessageService{TaskID: constant.CleanLogsTaskId}
sm := send_message_service.SendMessageService{
TaskID: constant.CleanLogsTaskId,
DefaultLogger: logrus.WithFields(logrus.Fields{
"prefix": "[Cron Clear Logs]",
}),
}
sm.Status = send_message_service.SendSuccess
sm.LogsAndStatusMark("开始清除日志", sm.Status)