Additional debugging lines for connector sessions

This commit is contained in:
Dan Stillman 2018-03-02 15:16:21 -05:00
parent 51ddc46322
commit f6926ccda6

View file

@ -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" })];
}