留言板
Disable "No * exists with the key..." warnings
Bartosz Siemieńczuk,修改在6 年前。
Disable "No * exists with the key..." warnings
New Member 帖子: 2 加入日期: 15-8-12 最近的帖子
Hello,
I build my services using ServiceBuilder, and I've encountered the issue - I often need to check in the code if some entity with given data exists, if not then I do something else - so I use *Persistence.findBySomethingSomethingSomething and catch NoSuch*Exception. Despite doing that I always also get the warning in logs, which says : "No * exists with the key { } " which gets quite annying when i process few thousands of records. Is there a way to get rid of that message, but not change the log levels for service packages?
I build my services using ServiceBuilder, and I've encountered the issue - I often need to check in the code if some entity with given data exists, if not then I do something else - so I use *Persistence.findBySomethingSomethingSomething and catch NoSuch*Exception. Despite doing that I always also get the warning in logs, which says : "No * exists with the key { } " which gets quite annying when i process few thousands of records. Is there a way to get rid of that message, but not change the log levels for service packages?
David H Nebinger,修改在6 年前。
RE: Disable "No * exists with the key..." warnings
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
If you use fetchXxx() methods, no warning.
If you use getXxx() methods, warning.
Come meet me at the 2017 LSNA!
If you use getXxx() methods, warning.
Come meet me at the 2017 LSNA!