Skip to content

Commit a30476f

Browse files
committed
chore: logging fix
1 parent 6a8a158 commit a30476f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/charting/utils/Utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export enum CLogTypes {
1616
}
1717

1818
export const CLog = (type: CLogTypes, ...args) => {
19-
Trace.write(args.join(' '), ChartTraceCategory, type);
19+
Trace.write(args.map(a=>(a && typeof a === 'object'? JSON.stringify(a) :a)).join(' '), ChartTraceCategory, type);
2020
};
2121

2222
export type FloatArray = Float32Array | Float64Array;

0 commit comments

Comments
 (0)