Add logging to help track down problems with Sync
Seems like we're running into errors sending the message to kick off the sync, so positive logging as well as error logging is included. FREEBIE
This commit is contained in:
@@ -19,8 +19,15 @@
|
||||
this.ongroup = this.onGroupSyncComplete.bind(this);
|
||||
receiver.addEventListener('groupsync', this.ongroup);
|
||||
|
||||
console.log('SyncRequest created. Sending contact sync message...');
|
||||
sender.sendRequestContactSyncMessage().then(function() {
|
||||
sender.sendRequestGroupSyncMessage();
|
||||
console.log('SyncRequest now sending group sync messsage...');
|
||||
return sender.sendRequestGroupSyncMessage();
|
||||
}).catch(function(error) {
|
||||
console.log(
|
||||
'SyncRequest error:',
|
||||
error && error.stack ? error.stack : error
|
||||
);
|
||||
});
|
||||
this.timeout = setTimeout(this.onTimeout.bind(this), 60000);
|
||||
}
|
||||
|
Reference in New Issue
Block a user