Fix wrong field being logged in `EnvelopesMonitor`
This commit is contained in:
parent
dc31c818fc
commit
741f43cb0c
|
@ -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)
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue