chore: added and fixed some logs (#4577)

* chore: logs for successful storenode request
This commit is contained in:
Igor Sirotin 2024-01-23 18:20:01 +00:00 committed by GitHub
parent 1017d2bc16
commit 2a91fba1fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -136,6 +136,8 @@ func (m *Messenger) performMailserverRequest(fn func() (*MessengerResponse, erro
response, err := fn()
if err == nil {
// Reset failed requests
m.logger.Debug("mailserver request performed successfully",
zap.String("mailserverID", activeMailserver.ID))
activeMailserver.FailedRequests = 0
return response, nil
}

View File

@ -459,8 +459,10 @@ func (r *storeNodeRequest) shouldFetchNextPage(envelopesCount int) (bool, uint32
}
}
logger.Debug("shard found for ",
zap.String("community", communityIDStr))
logger.Debug("shard found",
zap.String("community", communityIDStr),
zap.Any("shard", shardResult),
)
r.result.shard = shardResult

View File

@ -246,7 +246,7 @@ func (fs *Filters) NotifyWatchers(recvMessage *ReceivedMessage) bool {
}
if matched && decodedMsg != nil {
log.Debug("processing message: decrypted", "hash", recvMessage.Hash().Hex())
log.Debug("processing message: decrypted", "envelopeHash", recvMessage.Hash().Hex())
if watcher.Src == nil || IsPubKeyEqual(decodedMsg.Src, watcher.Src) {
watcher.Trigger(decodedMsg)
}