mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-04 03:13:15 +08:00
update log contents.
This commit is contained in:
parent
bead363df1
commit
d416e977aa
@ -611,7 +611,6 @@ func (c *conversationServer) GetOwnerConversation(ctx context.Context, req *pbco
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *conversationServer) GetConversationsNeedDestructMsgs(ctx context.Context, _ *pbconversation.GetConversationsNeedDestructMsgsReq) (*pbconversation.GetConversationsNeedDestructMsgsResp, error) {
|
func (c *conversationServer) GetConversationsNeedDestructMsgs(ctx context.Context, _ *pbconversation.GetConversationsNeedDestructMsgsReq) (*pbconversation.GetConversationsNeedDestructMsgsResp, error) {
|
||||||
log.ZInfo(ctx, "ConversationDestructMsgs cron start")
|
|
||||||
num, err := c.conversationDatabase.GetAllConversationIDsNumber(ctx)
|
num, err := c.conversationDatabase.GetAllConversationIDsNumber(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZError(ctx, "GetAllConversationIDsNumber failed", err)
|
log.ZError(ctx, "GetAllConversationIDsNumber failed", err)
|
||||||
|
|||||||
@ -93,7 +93,7 @@ func Start(ctx context.Context, config *CronTaskConfig) error {
|
|||||||
msgDestructFunc := func() {
|
msgDestructFunc := func() {
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
ctx := mcontext.SetOperationID(ctx, fmt.Sprintf("cron_%d_%d", os.Getpid(), now.UnixMilli()))
|
ctx := mcontext.SetOperationID(ctx, fmt.Sprintf("cron_%d_%d", os.Getpid(), now.UnixMilli()))
|
||||||
log.ZInfo(ctx, "msg destruct ", "now", now)
|
log.ZInfo(ctx, "msg destruct cron start", "now", now)
|
||||||
|
|
||||||
conversations, err := conversationClient.GetConversationsNeedDestructMsgs(ctx, &pbconversation.GetConversationsNeedDestructMsgsReq{})
|
conversations, err := conversationClient.GetConversationsNeedDestructMsgs(ctx, &pbconversation.GetConversationsNeedDestructMsgsReq{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user