Fórum

Disable "No * exists with the key..." warnings

Bartosz Siemieńczuk, modificado 6 Anos atrás.

Disable "No * exists with the key..." warnings

New Member Postagens: 2 Data de Entrada: 12/08/15 Postagens Recentes
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?
thumbnail
David H Nebinger, modificado 6 Anos atrás.

RE: Disable "No * exists with the key..." warnings

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
If you use fetchXxx() methods, no warning.

If you use getXxx() methods, warning.







Come meet me at the 2017 LSNA!