Fix wrong field being logged in `EnvelopesMonitor`

This commit is contained in:
Pedro Pombeiro 2020-01-23 16:12:50 +01:00 committed by Pedro Pombeiro
parent dc31c818fc
commit 741f43cb0c
5 changed files with 4 additions and 5 deletions

View File

@ -151,7 +151,6 @@ func verifyMailserverBehavior(mailserverNode *enode.Node) {
clientRPCClient := clientNode.RPCClient() clientRPCClient := clientNode.RPCClient()
// TODO: Replace chat implementation with github.com/status-im/status-go-sdk
_, topic, _, err := joinPublicChat(clientWhisperService, clientRPCClient, *publicChannel) _, topic, _, err := joinPublicChat(clientWhisperService, clientRPCClient, *publicChannel)
if err != nil { if err != nil {
logger.Error("Failed to join public chat", "error", err) logger.Error("Failed to join public chat", "error", err)

View File

@ -203,7 +203,7 @@ func (m *EnvelopesMonitor) handleAcknowledgedBatch(event types.EnvelopeEvent) {
m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String())) m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String()))
envelopeErrors, ok := event.Data.([]types.EnvelopeError) envelopeErrors, ok := event.Data.([]types.EnvelopeError)
if event.Data != nil && !ok { if event.Data != nil && !ok {
m.logger.Error("received unexpected data in the the confirmation event", zap.String("batch", event.Batch.String())) m.logger.Error("received unexpected data in the the confirmation event", zap.Any("data", event.Data))
} }
failedEnvelopes := map[types.Hash]struct{}{} failedEnvelopes := map[types.Hash]struct{}{}
for i := range envelopeErrors { for i := range envelopeErrors {

View File

@ -204,7 +204,7 @@ func (m *EnvelopesMonitor) handleAcknowledgedBatch(event types.EnvelopeEvent) {
m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String())) m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String()))
envelopeErrors, ok := event.Data.([]types.EnvelopeError) envelopeErrors, ok := event.Data.([]types.EnvelopeError)
if event.Data != nil && !ok { if event.Data != nil && !ok {
m.logger.Error("received unexpected data in the the confirmation event", zap.String("batch", event.Batch.String())) m.logger.Error("received unexpected data in the the confirmation event", zap.Any("data", event.Data))
} }
failedEnvelopes := map[types.Hash]struct{}{} failedEnvelopes := map[types.Hash]struct{}{}
for i := range envelopeErrors { for i := range envelopeErrors {

View File

@ -203,7 +203,7 @@ func (m *EnvelopesMonitor) handleAcknowledgedBatch(event types.EnvelopeEvent) {
m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String())) m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String()))
envelopeErrors, ok := event.Data.([]types.EnvelopeError) envelopeErrors, ok := event.Data.([]types.EnvelopeError)
if event.Data != nil && !ok { if event.Data != nil && !ok {
m.logger.Error("received unexpected data in the the confirmation event", zap.String("batch", event.Batch.String())) m.logger.Error("received unexpected data in the the confirmation event", zap.Any("data", event.Data))
} }
failedEnvelopes := map[types.Hash]struct{}{} failedEnvelopes := map[types.Hash]struct{}{}
for i := range envelopeErrors { for i := range envelopeErrors {

View File

@ -204,7 +204,7 @@ func (m *EnvelopesMonitor) handleAcknowledgedBatch(event types.EnvelopeEvent) {
m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String())) m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String()))
envelopeErrors, ok := event.Data.([]types.EnvelopeError) envelopeErrors, ok := event.Data.([]types.EnvelopeError)
if event.Data != nil && !ok { if event.Data != nil && !ok {
m.logger.Error("received unexpected data in the the confirmation event", zap.String("batch", event.Batch.String())) m.logger.Error("received unexpected data in the the confirmation event", zap.Any("data", event.Data))
} }
failedEnvelopes := map[types.Hash]struct{}{} failedEnvelopes := map[types.Hash]struct{}{}
for i := range envelopeErrors { for i := range envelopeErrors {