Don
06/15/2023, 10:26 PMtry {
// force an error
blah.breakme();
} catch (e) {
log.error({
title: `This works as expected`,
details: {
message: e.message,
name: e.name,
stack: e.stack,
}
});
log.error({
title: 'This logs an empty JSON object {}',
details: JSON.stringify(e)
});
}
battk
06/15/2023, 11:14 PMDon
06/16/2023, 1:33 PMDon
06/16/2023, 4:39 PMlog.error({
title: 'This logs an empty JSON object {}',
details: JSON.stringify(ex, Object.getOwnPropertyNames(ex))
});
Shawn Talbert
06/19/2023, 4:41 PM_.toPlainObject()