Message Boards
Velocity question
Daniel G, modified 4 Years ago.
Velocity question
Regular Member Posts: 141 Join Date: 3/14/17 Recent Posts
Hi all.I have a doubt regarding a template.I have a code like this:
so when the journalArticleLocalService falls, it prints the log and then it goes to the recover part. All works fine. So my question is this: Is there any way that when the attempt part fails, it does not print the log?
Thanks in advance.
<#attempt>
<#assign var = journalArticleLocalService.getArticleByUrlTitle/>
<#recover>
<#assign var = ""/> <!--#attempt-->
so when the journalArticleLocalService falls, it prints the log and then it goes to the recover part. All works fine. So my question is this: Is there any way that when the attempt part fails, it does not print the log?
Thanks in advance.
David H Nebinger, modified 4 Years ago.
RE: Velocity question
Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
Not that I know of. You'd probably have to disable the logger outright for the named package, but that is not advisable since you would lose logging on things you do care about.