File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 29
29
30
30
import org .opencms .file .CmsResource ;
31
31
import org .opencms .file .CmsVfsResourceNotFoundException ;
32
+ import org .opencms .i18n .CmsMessageContainer ;
32
33
import org .opencms .main .CmsException ;
33
34
import org .opencms .main .CmsLog ;
34
35
import org .opencms .repository .CmsPropertyName ;
@@ -666,10 +667,22 @@ private I_CmsRepositoryItem getItem() {
666
667
m_item = Optional .of (item );
667
668
668
669
} catch (Exception e ) {
669
- if (!(e instanceof CmsVfsResourceNotFoundException )) {
670
- LOG .error (e .getLocalizedMessage (), e );
671
- } else {
670
+ boolean isFiltered = false ;
671
+ if (e instanceof CmsException ) {
672
+ CmsMessageContainer messageContainer = ((CmsException )e ).getMessageContainer ();
673
+ if (messageContainer != null ) {
674
+ String messageKey = messageContainer .getKey ();
675
+ if (org .opencms .repository .Messages .ERR_ITEM_FILTERED_1 .equals (messageKey )) {
676
+ isFiltered = true ;
677
+ }
678
+ }
679
+ }
680
+ if (e instanceof CmsVfsResourceNotFoundException ) {
672
681
LOG .info (e .getLocalizedMessage (), e );
682
+ } else if (isFiltered ) {
683
+ LOG .warn (e .getLocalizedMessage (), e );
684
+ } else {
685
+ LOG .error (e .getLocalizedMessage (), e );
673
686
}
674
687
m_item = Optional .empty ();
675
688
You can’t perform that action at this time.
0 commit comments