]> source.dussan.org Git - archiva.git/commitdiff
add some debug informations
authorOlivier Lamy <olamy@apache.org>
Wed, 23 May 2012 08:56:34 +0000 (08:56 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 23 May 2012 08:56:34 +0000 (08:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341796 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java

index dcb31e4db360ecdda1930f0f32cefe1a6eeb46e1..37bb2f7fb94299659340c5db158291a21b47ce6f 100644 (file)
@@ -65,6 +65,7 @@ import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Enumeration;
@@ -731,6 +732,7 @@ public class DefaultBrowseService
                 File file = managedRepositoryContent.toFile( archivaArtifact );
                 if ( !file.exists() )
                 {
+                    log.debug( "file: {} not exists for repository: {} try next repository", file, repoId );
                     continue;
                 }
                 if ( StringUtils.isNotBlank( path ) )
@@ -769,6 +771,8 @@ public class DefaultBrowseService
             throw new ArchivaRestServiceException( e.getMessage(),
                                                    Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), e );
         }
+        log.debug( "artifact: {}:{}:{}:{}:{} not found",
+                   Arrays.asList( groupId, artifactId, version, classifier, type ).toArray( new String[5] ) );
         // 404 ?
         return "";
     }