11 lines
321 B
JavaScript
11 lines
321 B
JavaScript
import bunyan from '../lib/bunyan.mjs'
|
|
process.env.BUNYAN_TEST_NO_SAFE_JSON_STRINGIFY = '1';
|
|
|
|
var log = bunyan.createLogger({
|
|
name: 'safe-json-stringify-2'
|
|
});
|
|
|
|
var obj = {};
|
|
obj.__defineGetter__('boom',
|
|
function () { throw new Error('__defineGetter__ ouch!'); });
|
|
log.info({obj: obj}, 'using __defineGetter__');
|