去掉trace log

This commit is contained in:
dy 2023-12-19 16:24:14 +08:00
parent 87d5b0902f
commit dbda10a17e

View File

@ -630,25 +630,25 @@ export class _mongodb {
} }
} }
//@ts-ignore // //@ts-ignore
FindCursor.prototype._toArray = FindCursor.prototype.toArray; // FindCursor.prototype._toArray = FindCursor.prototype.toArray;
//@ts-ignore // //@ts-ignore
FindCursor.prototype.toArray = async function(){ // FindCursor.prototype.toArray = async function(){
let rss = await this._toArray(); // let rss = await this._toArray();
//
//如果返回的数据超过50条 // //如果返回的数据超过50条
if(rss.length>50){ // if(rss.length>50){
addGameLog("system","findCount",null,{ // addGameLog("system","findCount",null,{
collection: this.namespace.collection, // collection: this.namespace.collection,
db:this.namespace.db, // db:this.namespace.db,
count:rss.length // count:rss.length
}) // })
console.log("system,findCount",{ // console.log("system,findCount",{
collection: this.namespace.collection, // collection: this.namespace.collection,
db:this.namespace.db, // db:this.namespace.db,
count:rss.length // count:rss.length
}) // })
console.trace(); // console.trace();
} // }
return rss; // return rss;
} // }