mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Add file sync debugging output from e599a207 to master
This commit is contained in:
parent
c2e116a49a
commit
878500a011
1 changed files with 4 additions and 1 deletions
|
|
@ -92,6 +92,8 @@ Zotero.Sync.Storage.StreamListener.prototype = {
|
|||
|
||||
onStateChange: function (wp, request, stateFlags, status) {
|
||||
Zotero.debug("onStateChange");
|
||||
Zotero.debug(stateFlags);
|
||||
Zotero.debug(status);
|
||||
|
||||
if ((stateFlags & Components.interfaces.nsIWebProgressListener.STATE_START)
|
||||
&& (stateFlags & Components.interfaces.nsIWebProgressListener.STATE_IS_NETWORK)) {
|
||||
|
|
@ -145,7 +147,7 @@ Zotero.Sync.Storage.StreamListener.prototype = {
|
|||
// Private methods
|
||||
//
|
||||
_onStart: function (request) {
|
||||
//Zotero.debug('Starting request');
|
||||
Zotero.debug('Starting request');
|
||||
if (this._data && this._data.onStart) {
|
||||
var data = this._getPassData();
|
||||
this._data.onStart(request, data);
|
||||
|
|
@ -159,6 +161,7 @@ Zotero.Sync.Storage.StreamListener.prototype = {
|
|||
},
|
||||
|
||||
_onStop: function (request, status) {
|
||||
Zotero.debug('Request ended with status ' + status);
|
||||
var cancelled = status == 0x804b0002; // NS_BINDING_ABORTED
|
||||
|
||||
if (!cancelled && request instanceof Components.interfaces.nsIHttpChannel) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue