portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl PortletRendererImpl.java
Date Fri, 16 Jan 2004 20:02:27 GMT
weaver      2004/01/16 12:02:27

  Modified:    portal/src/java/org/apache/jetspeed/aggregator/impl
                        PortletRendererImpl.java
  Log:
  removed all printStackTrace calls, replaced with standard logging.
  
  Revision  Changes    Path
  1.5       +7 -10     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletRendererImpl.java
  
  Index: PortletRendererImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletRendererImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PortletRendererImpl.java	16 Jan 2004 19:34:23 -0000	1.4
  +++ PortletRendererImpl.java	16 Jan 2004 20:02:27 -0000	1.5
  @@ -108,9 +108,8 @@
               this.container = PortletContainerFactory.getPortletContainer();
           }
           catch (PortletContainerException e)
  -        {
  -            e.printStackTrace();
  -            log.error("Failed to get PortletContainer: " + e);
  +        {            
  +            log.error("Failed to get PortletContainer: " + e.toString(), e);
               return;
           }
   
  @@ -148,9 +147,8 @@
               container.renderPortlet(portletWindow, servletRequest, servletResponse);
           }
           catch (Throwable t)
  -        {
  -            t.printStackTrace();
  -            log.error("Failed to service portlet, portlet exception: " + t);
  +        {            
  +            log.error("Failed to service portlet, portlet exception: " + t.toString(),
t);
           }
           finally
           {
  @@ -178,9 +176,8 @@
               container.renderPortlet(portletWindow, request, response);
           }
           catch (Throwable t)
  -        {
  -            t.printStackTrace();
  -            log.error("Failed to service portlet, portlet exception: " + t);
  +        {            
  +            log.error("Failed to service portlet, portlet exception: " + t.toString(),
t);
           }
       }
   
  
  
  

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


Mime
View raw message