Skip to content

Commit 3f8cd87

Browse files
author
Wolfgang Ginolas
committed
Improve patch logging
1 parent 25e4fdf commit 3f8cd87

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

sdkjs/common/HistoryCommon.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4882,7 +4882,13 @@
48824882
if (firstChar.toUpperCase() === firstChar
48834883
&& p !== "Class"
48844884
&& typeof this[p] !== "function") {
4885-
properties[p] = ""+this[p];
4885+
let pStr;
4886+
try {
4887+
pStr = JSON.stringify(this[p]);
4888+
} catch(e) {
4889+
pStr = ""+this[p];
4890+
}
4891+
properties[p] = pStr;
48864892
}
48874893
}
48884894
console.log("Load", this.constructor.name, Class.constructor.name, Class.Id, properties);

0 commit comments

Comments
 (0)