|
@ -412,11 +412,14 @@ MongoClient.connect(mongourl, mongooptions, function(err, db){ |
|
|
if(err){ |
|
|
if(err){ |
|
|
console.log(err); |
|
|
console.log(err); |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
db.collection('log', onCollection); |
|
|
|
|
|
/* |
|
|
db.collection(function(err, collections) { |
|
|
db.collection(function(err, collections) { |
|
|
collections.forEach(function(coll) { |
|
|
collections.forEach(function(coll) { |
|
|
console.log(coll.s.name); |
|
|
console.log(coll.s.name); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
*/ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|