diff --git a/lib/stats.js b/lib/stats.js index 2be3c618..9775d2f2 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -74,4 +74,5 @@ Gun.log = console.STAT = function(a,b,c,d){ } if(!console.LOG || log.off){ return a } return log.apply(Gun, arguments); -} \ No newline at end of file +} +Gun.log.once = function(w,s,o){ return (o = Gun.log.once)[w] = o[w] || 0, o[w]++ || Gun.log(s) };