Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Velocity question
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.
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.