remove confusing debug log (#4948)
This commit is contained in:
parent
bcca75dc9d
commit
78bf40994a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue