mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-10 23:15:09 +00:00
perf[orm]: 降低日志级别
This commit is contained in:
1 parent
eb58a4b166
commit
5b87e342bd
1 file changed
+1
-1
@@ -67,7 +67,7 @@ public class MongodbAccessor implements IAccessor {
|
||||
|
||||
var result = collection.replaceOne(filter, entity);
|
||||
if (result.getModifiedCount() <= 0) {
|
||||
logger.error("数据库[{}]中没有[id:{}]的字段,或者需要更新的数据和数据库中的相同", entityClazz.getSimpleName(), entity.id());
|
||||
logger.warn("数据库[{}]中没有[id:{}]的字段,或者需要更新的数据和数据库中的相同", entityClazz.getSimpleName(), entity.id());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user