Reduce startup sync logs

This commit is contained in:
Tulir Asokan 2023-07-24 16:50:10 +03:00
parent 57dfe0fc72
commit 243ebb3e9c
2 changed files with 1 additions and 3 deletions

View file

@ -724,7 +724,7 @@ func (portal *Portal) SyncParticipants(source *User, metadata *gmproto.Conversat
} else {
manyParticipants = true
}
portal.zlog.Debug().Interface("participant", participant).Msg("Syncing participant")
portal.zlog.Trace().Interface("participant", participant).Msg("Syncing participant")
puppet := source.GetPuppetByID(participant.ID.ParticipantID, participant.ID.Number)
if puppet == nil {
portal.zlog.Error().Any("participant_id", participant.ID).Msg("Failed to get puppet for participant")

View file

@ -263,8 +263,6 @@ func (puppet *Puppet) Sync(source *User, contact *gmproto.Participant) {
puppet.log.Err(err).Msg("Failed to ensure registered")
}
puppet.log.Debug().Msg("Syncing info")
update := false
if contact != nil {
if contact.ID.Number != "" && puppet.Phone != contact.ID.Number {