From 243ebb3e9cdc91375082e9fc47f567a422df9a60 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 24 Jul 2023 16:50:10 +0300 Subject: [PATCH] Reduce startup sync logs --- portal.go | 2 +- puppet.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/portal.go b/portal.go index d6f745c..e49f674 100644 --- a/portal.go +++ b/portal.go @@ -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") diff --git a/puppet.go b/puppet.go index 15f3368..a21e716 100644 --- a/puppet.go +++ b/puppet.go @@ -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 {