refactor(server): reduce server logs (#11931)

close CLOUD-201
This commit is contained in:
fengmk2
2025-04-23 11:41:47 +00:00
parent ddb739fa13
commit ff133d1267
18 changed files with 70 additions and 46 deletions
@@ -122,7 +122,11 @@ export class VerificationTokenModel extends BaseModel {
type,
},
});
this.logger.log(`Deleted token success by type ${type} and token ${token}`);
if (count > 0) {
this.logger.log(
`Deleted token success by type ${type} and token ${token}`
);
}
return count;
}
@@ -137,7 +141,9 @@ export class VerificationTokenModel extends BaseModel {
},
},
});
this.logger.log(`Cleaned ${count} expired tokens`);
if (count > 0) {
this.logger.log(`Cleaned ${count} expired tokens`);
}
return count;
}
}