From f6926ccda678b728f5fb692a60ef8023aee99a26 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 2 Mar 2018 15:16:21 -0500 Subject: [PATCH] Additional debugging lines for connector sessions --- chrome/content/zotero/xpcom/server_connector.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js index c78f77b43..b17db6865 100644 --- 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" })]; }