From fcc6cc17a97994dc5fa49de15e85603aada1c65d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 21 Apr 2023 06:48:01 -0400 Subject: [PATCH] Better logging for changes to `deleted` property --- chrome/content/zotero/xpcom/data/dataObject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js index 1832e6583a..1526c763f8 100644 --- a/chrome/content/zotero/xpcom/data/dataObject.js +++ b/chrome/content/zotero/xpcom/data/dataObject.js @@ -117,10 +117,10 @@ for (let name of ['deleted']) { val = !!val; var oldVal = this._getLatestField(name); if (oldVal == val) { - Zotero.debug(Zotero.Utilities.capitalize(name) - + ` state hasn't changed for ${this._objectType} ${this.id}`); + Zotero.debug(`Field '${name}' hasn't changed`); return; } + Zotero.debug(`Field '${name}' has changed from '${oldVal}' to '${val}'`, 4); this._markFieldChange(name, val); } });