portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/controls Minimize.java
Date Thu, 24 Oct 2002 08:47:43 GMT
raphael     2002/10/24 01:47:43

  Modified:    src/java/org/apache/jetspeed/modules/actions/controls
                        Minimize.java
  Log:
  Move logging statement to use Logger facility
  
  Revision  Changes    Path
  1.8       +10 -4     jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/controls/Minimize.java
  
  Index: Minimize.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/controls/Minimize.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Minimize.java	28 Jun 2002 05:37:28 -0000	1.7
  +++ Minimize.java	24 Oct 2002 08:47:42 -0000	1.8
  @@ -98,8 +98,11 @@
           Entry entry = jdata.getProfile().getDocument().getEntryById(peid);
           if ( entry == null )
           {
  -            Log.warn("Failed to get PEID (" + peid + ") entry for User (" 
  -              + rundata.getUser().getName() + ")");
  +            if (Log.getLogger().isWarnEnabled())
  +            {
  +                Log.warn("Failed to get PEID (" + peid + ") entry for User (" 
  +                  + rundata.getUser().getName() + ")");
  +            }
               return;
           }
           Portlet portlet = PortletFactory.getPortlet(entry);
  @@ -107,8 +110,11 @@
           // Now set the portlet to minimized
           if (( portlet != null )&&( portlet instanceof PortletState ))
           {
  -            System.out.println("peid = " + peid);
  -            System.out.println("portlet id = " + portlet.getID());
  +            if (Log.getLogger().isDebugEnabled())
  +            {
  +                Log.debug("peid = " + peid);
  +                Log.debug("portlet id = " + portlet.getID());
  +            }
               if (portlet.getID().equals(peid))
               {
                   ((PortletState)portlet).setMinimized( true, rundata );
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message