remove confusing debug log (#4948)

This commit is contained in:
Pablo Lopez 2024-03-19 19:11:18 +02:00 committed by GitHub
parent bcca75dc9d
commit 78bf40994a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -432,12 +432,10 @@ func (m *Messenger) getActiveMailserver(communityID ...string) *mailservers.Mail
} }
ms, err := m.communityStorenodes.GetStorenodeByCommunnityID(communityID[0]) ms, err := m.communityStorenodes.GetStorenodeByCommunnityID(communityID[0])
if err != nil { if err != nil {
if errors.Is(err, storenodes.ErrNotFound) { if !errors.Is(err, storenodes.ErrNotFound) {
m.logger.Debug("not found specific mailserver for community, using global", zap.String("communityID", communityID[0])) m.logger.Error("getting storenode for community, using global", zap.String("communityID", communityID[0]), zap.Error(err))
} else {
m.logger.Error("not found specific mailserver for community, using global", zap.String("communityID", communityID[0]), zap.Error(err))
} }
// if we don't find a specific mailserver for the community, we use the global one // if we don't find a specific mailserver for the community, we just use the regular mailserverCycle's one
return m.mailserverCycle.activeMailserver return m.mailserverCycle.activeMailserver
} }
return &ms return &ms