Skip to content

Commit 5d65c29

Browse files
author
Wolfgang Ginolas
committed
Improve patch logging
1 parent 0254521 commit 5d65c29

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
@@ -4896,7 +4896,13 @@
48964896
if (firstChar.toUpperCase() === firstChar
48974897
&& p !== "Class"
48984898
&& typeof this[p] !== "function") {
4899-
properties[p] = ""+this[p];
4899+
let pStr;
4900+
try {
4901+
pStr = JSON.stringify(this[p]);
4902+
} catch(e) {
4903+
pStr = ""+this[p];
4904+
}
4905+
properties[p] = pStr;
49004906
}
49014907
}
49024908
console.log("Load", this.constructor.name, Class.constructor.name, Class.Id, properties);

0 commit comments

Comments
 (0)