Some additional debug output for file syncing
This commit is contained in:
parent
7dad7bcd5a
commit
e599a207a1
1 changed files with 4 additions and 1 deletions
|
@ -2524,6 +2524,8 @@ Zotero.Sync.Storage.StreamListener.prototype = {
|
||||||
|
|
||||||
onStateChange: function (wp, request, stateFlags, status) {
|
onStateChange: function (wp, request, stateFlags, status) {
|
||||||
Zotero.debug("onStateChange");
|
Zotero.debug("onStateChange");
|
||||||
|
Zotero.debug(stateFlags);
|
||||||
|
Zotero.debug(status);
|
||||||
|
|
||||||
if ((stateFlags & Components.interfaces.nsIWebProgressListener.STATE_START)
|
if ((stateFlags & Components.interfaces.nsIWebProgressListener.STATE_START)
|
||||||
&& (stateFlags & Components.interfaces.nsIWebProgressListener.STATE_IS_NETWORK)) {
|
&& (stateFlags & Components.interfaces.nsIWebProgressListener.STATE_IS_NETWORK)) {
|
||||||
|
@ -2577,7 +2579,7 @@ Zotero.Sync.Storage.StreamListener.prototype = {
|
||||||
// Private methods
|
// Private methods
|
||||||
//
|
//
|
||||||
_onStart: function (request) {
|
_onStart: function (request) {
|
||||||
//Zotero.debug('Starting request');
|
Zotero.debug('Starting request');
|
||||||
if (this._data && this._data.onStart) {
|
if (this._data && this._data.onStart) {
|
||||||
var data = this._getPassData();
|
var data = this._getPassData();
|
||||||
this._data.onStart(request, data);
|
this._data.onStart(request, data);
|
||||||
|
@ -2591,6 +2593,7 @@ Zotero.Sync.Storage.StreamListener.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
_onDone: function (request, status) {
|
_onDone: function (request, status) {
|
||||||
|
Zotero.debug('Request ended with status ' + status);
|
||||||
var cancelled = status == 0x804b0002; // NS_BINDING_ABORTED
|
var cancelled = status == 0x804b0002; // NS_BINDING_ABORTED
|
||||||
|
|
||||||
if (!cancelled && request instanceof Components.interfaces.nsIHttpChannel) {
|
if (!cancelled && request instanceof Components.interfaces.nsIHttpChannel) {
|
||||||
|
|
Loading…
Reference in a new issue