www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f6926ccda678b728f5fb692a60ef8023aee99a26
parent 51ddc463227ca334de7e8680292f34fe35422ecb
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  2 Mar 2018 15:16:21 -0500

Additional debugging lines for connector sessions

Diffstat:
Mchrome/content/zotero/xpcom/server_connector.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js @@ -83,6 +83,7 @@ Zotero.Server.Connector.SessionManager = { create: function (id) { // Legacy client if (!id) { + Zotero.debug("No session id provided by client", 2); id = Zotero.Utilities.randomString(); } if (this._sessions.has(id)) { @@ -767,6 +768,7 @@ Zotero.Server.Connector.UpdateSession.prototype = { var session = Zotero.Server.Connector.SessionManager.get(data.sessionID); if (!session) { + Zotero.debug("Can't find session " + data.sessionID, 1); return [400, "application/json", JSON.stringify({ error: "SESSION_NOT_FOUND" })]; }