perf[orm]: lower the log warning level

This commit is contained in:
godotg
2023-03-02 16:49:03 +08:00
parent a74e248ef4
commit 548465d032
2 changed files with 2 additions and 2 deletions
@@ -92,7 +92,7 @@ public class MongodbAccessor implements IAccessor {
var result = collection.bulkWrite(batchList, new BulkWriteOptions().ordered(false));
if (result.getModifiedCount() != entities.size()) {
logger.error("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同"
logger.warn("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同(大部分原因都是因为需要更新的文档和数据库的文档相同)"
, entityClazz.getSimpleName(), entities.size(), result.getModifiedCount());
}
} catch (Throwable t) {
+1 -1
View File
@@ -229,7 +229,7 @@ public class EntityCaches<PK extends Comparable<PK>, E extends IEntity<PK>> impl
continue;
}
logger.error("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同,开始执行容错操作"
logger.warn("在数据库[{}]的批量更新操作中需要更新的数量[{}]和最终更新的数量[{}]不相同,开始执行容错操作(大部分原因都是因为需要更新的文档和数据库的文档相同)"
, entityDef.getClazz().getSimpleName(), currentUpdateList.size(), result.getModifiedCount());
persistAllAndCompare(currentUpdateList);
} catch (Throwable t) {