maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r691833 - /maven/sandbox/trunk/scm/maven-scm-provider-svnjava/src/main/java/org/apache/maven/scm/provider/svn/svnjava/util/ScmFileEventHandler.java
Date Wed, 03 Sep 2008 23:55:01 GMT
Author: vsiveton
Date: Wed Sep  3 16:55:01 2008
New Revision: 691833

URL: http://svn.apache.org/viewvc?rev=691833&view=rev
Log:
SCM-411: Performance: logger calls are not optimal

o improved all logging call (debug, error, warn and info)

Modified:
    maven/sandbox/trunk/scm/maven-scm-provider-svnjava/src/main/java/org/apache/maven/scm/provider/svn/svnjava/util/ScmFileEventHandler.java

Modified: maven/sandbox/trunk/scm/maven-scm-provider-svnjava/src/main/java/org/apache/maven/scm/provider/svn/svnjava/util/ScmFileEventHandler.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/scm/maven-scm-provider-svnjava/src/main/java/org/apache/maven/scm/provider/svn/svnjava/util/ScmFileEventHandler.java?rev=691833&r1=691832&r2=691833&view=diff
==============================================================================
--- maven/sandbox/trunk/scm/maven-scm-provider-svnjava/src/main/java/org/apache/maven/scm/provider/svn/svnjava/util/ScmFileEventHandler.java
(original)
+++ maven/sandbox/trunk/scm/maven-scm-provider-svnjava/src/main/java/org/apache/maven/scm/provider/svn/svnjava/util/ScmFileEventHandler.java
Wed Sep  3 16:55:01 2008
@@ -79,8 +79,11 @@
 
         if ( status == null )
         {
-            logger.info( "Unknown SVN file status: '" + event.getExpectedAction() + "' for
file: "
-                + event.getFile().getAbsolutePath() );
+            if ( logger.isInfoEnabled() )
+            {
+                logger.info( "Unknown SVN file status: '" + event.getExpectedAction() + "'
for file: "
+                    + event.getFile().getAbsolutePath() );
+            }
 
             status = ScmFileStatus.UNKNOWN;
         }



Mime
View raw message