Bunyan logger cannot be cloned.
Closed this issue · 2 comments
phdunham commented
I use bunyan in my classes:
let bunyan = require('bunyan');
function MyClass() {
this.logger = bunyan.createLogger(...);
}
let m = new MyClass()
clone(m, true);
TypeError: Cannot set property remoteAddress of #<Socket> which has only a getter
at _clone (.../node_modules/clone/clone.js:99:16)
Thanks
TanyRay commented
I have the same issue with another library. Will this issue be fix in the nearest future?
pvorb commented
I don't think it's possible to fix this behavior. How would it ever be able to clone a socket?