Don't include chat info in every log line when syncing

This commit is contained in:
Tulir Asokan 2024-02-29 17:35:37 +02:00
parent 2b41398074
commit e9ec6b5e64

View file

@ -1029,8 +1029,8 @@ func (user *User) syncConversation(v *gmproto.Conversation, source string) {
Str("action", "sync conversation"). Str("action", "sync conversation").
Str("conversation_status", updateType.String()). Str("conversation_status", updateType.String()).
Str("data_source", source). Str("data_source", source).
Interface("conversation_data", convCopy).
Logger() Logger()
log.Debug().Any("conversation_data", convCopy).Msg("Got conversation update")
ctx := log.WithContext(context.TODO()) ctx := log.WithContext(context.TODO())
if cancel := portal.cancelCreation.Load(); cancel != nil { if cancel := portal.cancelCreation.Load(); cancel != nil {
if updateType == gmproto.ConversationStatus_SPAM_FOLDER || updateType == gmproto.ConversationStatus_BLOCKED_FOLDER { if updateType == gmproto.ConversationStatus_SPAM_FOLDER || updateType == gmproto.ConversationStatus_BLOCKED_FOLDER {