mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	add log
This commit is contained in:
		
							parent
							
								
									a472da9ea6
								
							
						
					
					
						commit
						91fe549c25
					
				@ -60,7 +60,7 @@ func (mc *OfflineHistoryConsumerHandler) handleChatWs2Mongo(msg []byte, msgKey s
 | 
				
			|||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			go sendMessageToPush(&msgFromMQ, msgKey)
 | 
								go sendMessageToPush(&msgFromMQ, msgKey)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		log.NewDebug(operationID, "saveUserChat cost time ", time.Since(now))
 | 
							log.NewDebug(operationID, "saveSingleMsg cost time ", time.Since(now))
 | 
				
			||||||
	case constant.GroupChatType:
 | 
						case constant.GroupChatType:
 | 
				
			||||||
		log.NewDebug(msgFromMQ.OperationID, "msg_transfer msg type = GroupChatType", isHistory, isPersist)
 | 
							log.NewDebug(msgFromMQ.OperationID, "msg_transfer msg type = GroupChatType", isHistory, isPersist)
 | 
				
			||||||
		if isHistory {
 | 
							if isHistory {
 | 
				
			||||||
@ -72,6 +72,8 @@ func (mc *OfflineHistoryConsumerHandler) handleChatWs2Mongo(msg []byte, msgKey s
 | 
				
			|||||||
			groupMsgCount++
 | 
								groupMsgCount++
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		go sendMessageToPush(&msgFromMQ, msgFromMQ.MsgData.RecvID)
 | 
							go sendMessageToPush(&msgFromMQ, msgFromMQ.MsgData.RecvID)
 | 
				
			||||||
 | 
							log.NewDebug(operationID, "saveGroupMsg cost time ", time.Since(now))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case constant.NotificationChatType:
 | 
						case constant.NotificationChatType:
 | 
				
			||||||
		log.NewDebug(msgFromMQ.OperationID, "msg_transfer msg type = NotificationChatType", isHistory, isPersist)
 | 
							log.NewDebug(msgFromMQ.OperationID, "msg_transfer msg type = NotificationChatType", isHistory, isPersist)
 | 
				
			||||||
		if isHistory {
 | 
							if isHistory {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user