chore: added and fixed some logs (#4577)
* chore: logs for successful storenode request
This commit is contained in:
parent
1017d2bc16
commit
2a91fba1fa
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue