去掉trace log
This commit is contained in:
parent
87d5b0902f
commit
dbda10a17e
@ -630,25 +630,25 @@ export class _mongodb {
|
||||
}
|
||||
}
|
||||
|
||||
//@ts-ignore
|
||||
FindCursor.prototype._toArray = FindCursor.prototype.toArray;
|
||||
//@ts-ignore
|
||||
FindCursor.prototype.toArray = async function(){
|
||||
let rss = await this._toArray();
|
||||
|
||||
//如果返回的数据超过50条
|
||||
if(rss.length>50){
|
||||
addGameLog("system","findCount",null,{
|
||||
collection: this.namespace.collection,
|
||||
db:this.namespace.db,
|
||||
count:rss.length
|
||||
})
|
||||
console.log("system,findCount",{
|
||||
collection: this.namespace.collection,
|
||||
db:this.namespace.db,
|
||||
count:rss.length
|
||||
})
|
||||
console.trace();
|
||||
}
|
||||
return rss;
|
||||
}
|
||||
// //@ts-ignore
|
||||
// FindCursor.prototype._toArray = FindCursor.prototype.toArray;
|
||||
// //@ts-ignore
|
||||
// FindCursor.prototype.toArray = async function(){
|
||||
// let rss = await this._toArray();
|
||||
//
|
||||
// //如果返回的数据超过50条
|
||||
// if(rss.length>50){
|
||||
// addGameLog("system","findCount",null,{
|
||||
// collection: this.namespace.collection,
|
||||
// db:this.namespace.db,
|
||||
// count:rss.length
|
||||
// })
|
||||
// console.log("system,findCount",{
|
||||
// collection: this.namespace.collection,
|
||||
// db:this.namespace.db,
|
||||
// count:rss.length
|
||||
// })
|
||||
// console.trace();
|
||||
// }
|
||||
// return rss;
|
||||
// }
|
Loading…
Reference in New Issue
Block a user