diff --git a/gun.js b/gun.js index 9a165f46..3b9860a2 100644 --- a/gun.js +++ b/gun.js @@ -2011,7 +2011,7 @@ } var S, ST; LOG && (S = +new Date); console.STAT = {}; root.on('in', msg); - if(LOG && !msg.nts && (ST = +new Date - S) > 9){ opt.log(S, ST, 'msg', msg['#'], JSON.stringify(console.STAT)); if(ST > 500){ try{ require('./lib/email').send({text: ""+ST+"ms "+JSON.stringify(msg)+" | "+JSON.stringify(console.STAT), from: "mark@gun.eco", to: "mark@gun.eco", subject: "GUN MSG"}, noop); }catch(e){} } } // this is ONLY turned on if ENV CONFIGS have email/password to send out from. + if(LOG && !msg.nts && (ST = +new Date - S) > 9){ opt.log(S, ST, 'msg', msg['#'], JSON.stringify(console.STAT)) } return; } } diff --git a/lib/radisk.js b/lib/radisk.js index b08a56e8..1efe678f 100644 --- a/lib/radisk.js +++ b/lib/radisk.js @@ -228,7 +228,6 @@ //opt.store.put(tmp, f.text, cb); // revert to this after stats done below: opt.store.put(tmp, f.text, function(err,ok){ LOG && opt.log(S, ST = +new Date - S, "wrote disk", tmp); - LOG && (ST > 500) && require('./email').send({text: ""+ST+"ms "+tmp, from: "mark@gun.eco", to: "mark@gun.eco", subject: "RAD DISK WROTE"}, noop); // this is ONLY turned on if ENV CONFIGS have email/password to send out from. cb(err,ok); }); }); @@ -438,7 +437,6 @@ p.disk.$ = json; LOG && (ST = +new Date - S) > 9 && opt.log(S, ST, 'rad parsed JSON'); map(q, p.ack); - LOG && (ST > 500) && require('./email').send({text: ""+ST+"ms "+ename(file), from: "mark@gun.eco", to: "mark@gun.eco", subject: "RAD JSON parse"}, noop); // this is ONLY turned on if ENV CONFIGS have email/password to send out from. return; }catch(e){ tmp = e } if('{' === data[0]){