diff options
author | Olivier Lamy <olamy@apache.org> | 2012-05-23 08:56:34 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-05-23 08:56:34 +0000 |
commit | b5c876a61719c75a62b38b9d1d724d1f46bc53e1 (patch) | |
tree | b8d9b56c1f82f199ca798ca60687872aa510c74d | |
parent | cb80084a24095fb4debc50da7ab3850dff2f499a (diff) | |
download | archiva-b5c876a61719c75a62b38b9d1d724d1f46bc53e1.tar.gz archiva-b5c876a61719c75a62b38b9d1d724d1f46bc53e1.zip |
add some debug informations
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341796 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java index dcb31e4db..37bb2f7fb 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java @@ -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 ""; } |