From b5c876a61719c75a62b38b9d1d724d1f46bc53e1 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 23 May 2012 08:56:34 +0000 Subject: [PATCH] add some debug informations git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341796 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/rest/services/DefaultBrowseService.java | 4 ++++ 1 file changed, 4 insertions(+) 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 ""; } -- 2.39.5