Better logging for sync sent messages, and new (disappeared) msgs
FREEBIE
This commit is contained in:
parent
ad8cb870d9
commit
92ba295d52
3 changed files with 15 additions and 7 deletions
|
@ -38698,8 +38698,7 @@ MessageReceiver.prototype.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleNullMessage: function(envelope, nullMessage) {
|
handleNullMessage: function(envelope, nullMessage) {
|
||||||
var encodedNumber = envelope.source + '.' + envelope.sourceDevice;
|
console.log('null message from', encodedNumber, this.getEnvelopeId(envelope));
|
||||||
console.log('null message from', encodedNumber, envelope.timestamp.toNumber());
|
|
||||||
this.removeFromCache(envelope);
|
this.removeFromCache(envelope);
|
||||||
},
|
},
|
||||||
handleSyncMessage: function(envelope, syncMessage) {
|
handleSyncMessage: function(envelope, syncMessage) {
|
||||||
|
@ -38714,7 +38713,8 @@ MessageReceiver.prototype.extend({
|
||||||
console.log('sent message to',
|
console.log('sent message to',
|
||||||
sentMessage.destination,
|
sentMessage.destination,
|
||||||
sentMessage.timestamp.toNumber(),
|
sentMessage.timestamp.toNumber(),
|
||||||
'from', envelope.source + '.' + envelope.sourceDevice
|
'from',
|
||||||
|
this.getEnvelopeId(envelope)
|
||||||
);
|
);
|
||||||
return this.handleSentMessage(
|
return this.handleSentMessage(
|
||||||
envelope,
|
envelope,
|
||||||
|
|
|
@ -518,7 +518,15 @@
|
||||||
catch (e) {
|
catch (e) {
|
||||||
handleError(e);
|
handleError(e);
|
||||||
}
|
}
|
||||||
}, handleError);
|
}, function(error) {
|
||||||
|
console.log('handleDataMessage: Message', message.idForLogging(), 'was deleted');
|
||||||
|
|
||||||
|
if (confirm) {
|
||||||
|
confirm();
|
||||||
|
}
|
||||||
|
|
||||||
|
return resolve();
|
||||||
|
});
|
||||||
}, handleError);
|
}, handleError);
|
||||||
}, handleError);
|
}, handleError);
|
||||||
});
|
});
|
||||||
|
|
|
@ -456,8 +456,7 @@ MessageReceiver.prototype.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleNullMessage: function(envelope, nullMessage) {
|
handleNullMessage: function(envelope, nullMessage) {
|
||||||
var encodedNumber = envelope.source + '.' + envelope.sourceDevice;
|
console.log('null message from', encodedNumber, this.getEnvelopeId(envelope));
|
||||||
console.log('null message from', encodedNumber, envelope.timestamp.toNumber());
|
|
||||||
this.removeFromCache(envelope);
|
this.removeFromCache(envelope);
|
||||||
},
|
},
|
||||||
handleSyncMessage: function(envelope, syncMessage) {
|
handleSyncMessage: function(envelope, syncMessage) {
|
||||||
|
@ -472,7 +471,8 @@ MessageReceiver.prototype.extend({
|
||||||
console.log('sent message to',
|
console.log('sent message to',
|
||||||
sentMessage.destination,
|
sentMessage.destination,
|
||||||
sentMessage.timestamp.toNumber(),
|
sentMessage.timestamp.toNumber(),
|
||||||
'from', envelope.source + '.' + envelope.sourceDevice
|
'from',
|
||||||
|
this.getEnvelopeId(envelope)
|
||||||
);
|
);
|
||||||
return this.handleSentMessage(
|
return this.handleSentMessage(
|
||||||
envelope,
|
envelope,
|
||||||
|
|
Loading…
Reference in a new issue