chore: cron messge send msg logging

This commit is contained in:
engigu
2025-01-01 00:20:23 +08:00
parent fc654b5da7
commit 383726b41c
+2 -2
View File
@@ -47,7 +47,7 @@ func AddCronMsgToCronServer(msg models.CronMessages) {
}, },
}) })
constant.CronMsgIdMapMemoryCache[msg.ID] = taskId constant.CronMsgIdMapMemoryCache[msg.ID] = taskId
logrus.Infof("新增定时消息成功,消息id: %s, 当前任务总数:%d", msg.ID, len(constant.CronMsgIdMapMemoryCache)) logrus.Infof("新增定时消息成功,消息id: %s,消息名: %s当前任务总数:%d", msg.ID, msg.Name, len(constant.CronMsgIdMapMemoryCache))
} }
// 执行任务的构造函数 // 执行任务的构造函数
@@ -63,7 +63,7 @@ func CronMsgSendF(msg models.CronMessages) {
Title: msg.Title, Title: msg.Title,
Text: msg.Content, Text: msg.Content,
URL: msg.Url, URL: msg.Url,
CallerIp: "cron", CallerIp: "cron task",
DefaultLogger: logrus.WithFields(logrus.Fields{ DefaultLogger: logrus.WithFields(logrus.Fields{
"prefix": "[Cron Message]", "prefix": "[Cron Message]",
}), }),