Skip to content

Commit 5b505bf

Browse files
committed
chore:logging fix
1 parent d540785 commit 5b505bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bluetooth.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export enum CLogTypes {
1111
}
1212

1313
export const CLog = (type: CLogTypes, ...args) => {
14-
Trace.write(args.join(' '), BleTraceCategory, type);
14+
Trace.write(args.map(a=>(a && typeof a === 'object'? JSON.stringify(a) :a)).join(' '), BleTraceCategory, type);
1515
};
1616

1717
export class BluetoothError extends BaseError {

0 commit comments

Comments
 (0)