mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
make debug available
This commit is contained in:
parent
2015a01b65
commit
30ae1e7392
@ -18,13 +18,14 @@
|
||||
print += db.nodes + ' nodes. ';
|
||||
}
|
||||
if(db.count){ print += db.count + ' msgs. '}
|
||||
console.log(print);
|
||||
console.log(db.print = print);
|
||||
}, 2500);
|
||||
|
||||
var Gun = require('../gun');
|
||||
Gun.on('opt', function(root){
|
||||
this.to.next(root);
|
||||
if(root.once){ return }
|
||||
root.debug = db;
|
||||
db.root = root;
|
||||
db.peers = root.opt.peers;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user