generated from root/miduo_server
print log
parent
e3550c6357
commit
06d25b00a2
|
|
@ -74,7 +74,12 @@ public class MyMongoDBPool {
|
|||
}
|
||||
|
||||
private DBObject findOne2(String collectionName, Object id) throws Exception {
|
||||
LOGGER.info("the collection={},id={}",collectionName,id);
|
||||
DBCollection coll = db.getCollection(collectionName);
|
||||
if(coll == null){
|
||||
LOGGER.info("the collection={},id={} is null",collectionName,id);
|
||||
return null;
|
||||
}
|
||||
return coll.findOne(id.toString());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue