Reduce startup sync logs
This commit is contained in:
parent
57dfe0fc72
commit
243ebb3e9c
2 changed files with 1 additions and 3 deletions
|
@ -724,7 +724,7 @@ func (portal *Portal) SyncParticipants(source *User, metadata *gmproto.Conversat
|
||||||
} else {
|
} else {
|
||||||
manyParticipants = true
|
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)
|
puppet := source.GetPuppetByID(participant.ID.ParticipantID, participant.ID.Number)
|
||||||
if puppet == nil {
|
if puppet == nil {
|
||||||
portal.zlog.Error().Any("participant_id", participant.ID).Msg("Failed to get puppet for participant")
|
portal.zlog.Error().Any("participant_id", participant.ID).Msg("Failed to get puppet for participant")
|
||||||
|
|
|
@ -263,8 +263,6 @@ func (puppet *Puppet) Sync(source *User, contact *gmproto.Participant) {
|
||||||
puppet.log.Err(err).Msg("Failed to ensure registered")
|
puppet.log.Err(err).Msg("Failed to ensure registered")
|
||||||
}
|
}
|
||||||
|
|
||||||
puppet.log.Debug().Msg("Syncing info")
|
|
||||||
|
|
||||||
update := false
|
update := false
|
||||||
if contact != nil {
|
if contact != nil {
|
||||||
if contact.ID.Number != "" && puppet.Phone != contact.ID.Number {
|
if contact.ID.Number != "" && puppet.Phone != contact.ID.Number {
|
||||||
|
|
Loading…
Reference in a new issue