logo       

roller/src/org/roller/util LinkbackExtractor.java,1.16,1.17: msg#00066

Subject: roller/src/org/roller/util LinkbackExtractor.java,1.16,1.17
Update of /cvsroot/roller/roller/src/org/roller/util
In directory sc8-pr-cvs1:/tmp/cvs-serv11509/src/org/roller/util

Modified Files:
        LinkbackExtractor.java 
Log Message:
wrapped mLogger.debug statements with mLogger.isDebugEnabled() for performance 
enhancement

Index: LinkbackExtractor.java
===================================================================
RCS file: /cvsroot/roller/roller/src/org/roller/util/LinkbackExtractor.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** LinkbackExtractor.java      25 May 2003 13:11:12 -0000      1.16
--- LinkbackExtractor.java      16 Oct 2003 16:16:44 -0000      1.17
***************
*** 71,75 ****
          catch (Exception e)
          {
!             mLogger.debug("Extracting linkback",e);
          }
      }
--- 71,78 ----
          catch (Exception e)
          {
!             if (mLogger.isDebugEnabled())
!             {
!                 mLogger.debug("Extracting linkback",e);
!             }
          }
      }
***************
*** 145,149 ****
          
          int count = 0;
!         mLogger.debug("Feed parsed, title: "+feedTitle);
          while ( articleIter.hasNext() )
          {
--- 148,157 ----
          
          int count = 0;
!         
!         if (mLogger.isDebugEnabled())
!         {
!             mLogger.debug("Feed parsed, title: "+feedTitle);
!         }
!         
          while ( articleIter.hasNext() )
          {
***************
*** 171,176 ****
              }
          }
!         mLogger.debug("Parsed "+count+" articles, found linkback="+mFound);
!       }
        
      //------------------------------------------------------------------------
--- 179,188 ----
              }
          }
!         
!         if (mLogger.isDebugEnabled())
!         {
!             mLogger.debug("Parsed "+count+" articles, found 
linkback="+mFound);
!           }
!     }
        
      //------------------------------------------------------------------------
***************
*** 269,273 ****
                  else
                  {
!                     //mLogger.debug("No match: "+href);
                  }
              }
--- 281,288 ----
                  else
                  {
!                     /*if (mLogger.isDebugEnabled())
!                     {
!                         mLogger.debug("No match: "+href);
!                     }*/
                  }
              }
***************
*** 293,297 ****
                {
                        mRssLink = 
(String)atts.getAttribute(HTML.Attribute.HREF);
!                     mLogger.debug("Found RSS link "+mRssLink);
                      if ( mRssLink.startsWith("/") && mRssLink.length()>1 )
                      {
--- 308,317 ----
                {
                        mRssLink = 
(String)atts.getAttribute(HTML.Attribute.HREF);
!                     
!                     if (mLogger.isDebugEnabled())
!                     {
!                         mLogger.debug("Found RSS link "+mRssLink);
!                     }
!                     
                      if ( mRssLink.startsWith("/") && mRssLink.length()>1 )
                      {
***************
*** 305,309 ****
                          {
                              mRssLink = null;
!                             mLogger.debug("Determining RSS URL",e);
                          }
                      }
--- 325,332 ----
                          {
                              mRssLink = null;
!                             if (mLogger.isDebugEnabled())
!                             {
!                                 mLogger.debug("Determining RSS URL",e);
!                             }
                          }
                      }
***************
*** 316,320 ****
                          }
                      }
!                     mLogger.debug("Qualified RSS link is "+mRssLink);
                }
              }
--- 339,346 ----
                          }
                      }
!                     if (mLogger.isDebugEnabled())
!                     {
!                         mLogger.debug("Qualified RSS link is "+mRssLink);
!                     }
                }
              }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe