Skip to content

Commit

Permalink
Merge pull request #961 from diatche/log-once-fix
Browse files Browse the repository at this point in the history
Fixed missing Gun.log.once function
  • Loading branch information
amark authored Jun 15, 2020
2 parents f759ab1 + 0d53db7 commit 7c45ddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Gun.log.once = function(w,s,o){ return (o = Gun.log.once)[w] = o[w] || 0, o[w]++ || Gun.log(s) };

0 comments on commit 7c45ddb

Please sign in to comment.