stephan 2002/08/14 08:15:28 Modified: src/scratchpad/src/org/apache/cocoon/acting PrincipalMultiAction.java SourceMultiAction.java Log: Reduced the severity level of the log messages. Revision Changes Path 1.3 +13 -9 xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting/PrincipalMultiAction.java Index: PrincipalMultiAction.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting/PrincipalMultiAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PrincipalMultiAction.java 21 Jul 2002 22:50:54 -0000 1.2 +++ PrincipalMultiAction.java 14 Aug 2002 15:15:28 -0000 1.3 @@ -133,7 +133,8 @@ principalprovider.addPrincipal(caller, principal); } catch (ComponentException ce) { - getLogger().error("Could not lookup for component.", ce); + if (getLogger().isDebugEnabled()) + getLogger().debug("Could not lookup for component.", ce); throw new ProcessingException("Could not lookup for component.", ce); } finally { if (principalprovider!=null) @@ -182,7 +183,8 @@ principalprovider.removePrincipal(caller, principal); } catch (ComponentException ce) { - getLogger().error("Could not lookup for component.", ce); + if (getLogger().isDebugEnabled()) + getLogger().debug("Could not lookup for component.", ce); throw new ProcessingException("Could not lookup for component.", ce); } finally { if (principalprovider!=null) @@ -231,7 +233,8 @@ principalprovider.addPrincipalGroup(caller, principalgroup); } catch (ComponentException ce) { - getLogger().error("Could not lookup for component.", ce); + if (getLogger().isDebugEnabled()) + getLogger().debug("Could not lookup for component.", ce); throw new ProcessingException("Could not lookup for component.", ce); } finally { if (principalprovider!=null) @@ -280,7 +283,8 @@ principalprovider.removePrincipalGroup(caller, principalgroup); } catch (ComponentException ce) { - getLogger().error("Could not lookup for component.", ce); + if (getLogger().isDebugEnabled()) + getLogger().debug("Could not lookup for component.", ce); throw new ProcessingException("Could not lookup for component.", ce); } finally { if (principalprovider!=null) @@ -333,7 +337,8 @@ principalprovider.addMember(caller, principalgroup, principal); } catch (ComponentException ce) { - getLogger().error("Could not lookup for component.", ce); + if (getLogger().isDebugEnabled()) + getLogger().debug("Could not lookup for component.", ce); throw new ProcessingException("Could not lookup for component.", ce); } finally { if (principalprovider!=null) @@ -386,7 +391,8 @@ principalprovider.removeMember(caller, principalgroup, principal); } catch (ComponentException ce) { - getLogger().error("Could not lookup for component.", ce); + if (getLogger().isDebugEnabled()) + getLogger().debug("Could not lookup for component.", ce); throw new ProcessingException("Could not lookup for component.", ce); } finally { if (principalprovider!=null) @@ -400,6 +406,4 @@ return EMPTY_MAP; } } - - 1.6 +13 -3 xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting/SourceMultiAction.java Index: SourceMultiAction.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting/SourceMultiAction.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- SourceMultiAction.java 14 Aug 2002 09:19:26 -0000 1.5 +++ SourceMultiAction.java 14 Aug 2002 15:15:28 -0000 1.6 @@ -166,10 +166,12 @@ throw new ProcessingException("Source isn't writeable"); } catch (SourceException se) { - getLogger().error("Exception occurs while storing the content", se); + if (getLogger().isDebugEnabled()) + getLogger().debug("Exception occurs while storing the content", se); throw new ProcessingException("Exception occurs while storing the content", se); } catch (IOException ioe) { - getLogger().error("Exception occurs while storing the content", ioe); + if (getLogger().isDebugEnabled()) + getLogger().debug("Exception occurs while storing the content", ioe); throw new ProcessingException("Exception occurs while storing the content", ioe); } } @@ -203,6 +205,8 @@ throw new ProcessingException("Source isn't writeable"); } catch (SourceException se) { + if (getLogger().isDebugEnabled()) + getLogger().debug("Exception occurs while modifying the source", se); throw new ProcessingException("Exception occurs while modifying the source", se); } @@ -248,6 +252,8 @@ } else throw new ProcessingException("Source isn't inspectable"); } catch (SourceException se) { + if (getLogger().isDebugEnabled()) + getLogger().debug("Exception occurs while modifying the source", se); throw new ProcessingException("Exception occurs while modifying the source", se); } @@ -289,6 +295,8 @@ } else throw new ProcessingException("Source isn't inspectable"); } catch (SourceException se) { + if (getLogger().isDebugEnabled()) + getLogger().debug("Exception occurs while modifying the source", se); throw new ProcessingException("Exception occurs while modifying the source", se); } @@ -337,6 +345,8 @@ } else throw new ProcessingException("Source isn't restrictable"); } catch (SourceException se) { + if (getLogger().isDebugEnabled()) + getLogger().debug("Exception occurs while modifying the source", se); throw new ProcessingException("Exception occurs while modifying the source", se); }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]