chore: cron messge send msg logging
This commit is contained in:
@@ -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]",
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user