Pārlūkot izejas kodu

Merge pull request #1710 from EyadA/master

Added Parent URL to ContentNotFoundException
Shinsuke Sugaya 7 gadi atpakaļ
vecāks
revīzija
b1d1c31d4b

+ 1 - 1
src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

@@ -261,7 +261,7 @@ public class FessCrawlerThread extends CrawlerThread {
 
             final FailureUrlService failureUrlService = ComponentUtil.getComponent(FailureUrlService.class);
             failureUrlService.store(crawlingConfig, ContentNotFoundException.class.getCanonicalName(), url, new ContentNotFoundException(
-                    url));
+                    urlQueue.getParentUrl(), url));
         }
     }
 

+ 2 - 2
src/main/java/org/codelibs/fess/exception/ContentNotFoundException.java

@@ -19,8 +19,8 @@ public class ContentNotFoundException extends FessSystemException {
 
     private static final long serialVersionUID = 1L;
 
-    public ContentNotFoundException(final String url) {
-        super("Not Found: " + url, false, false);
+    public ContentNotFoundException(final String parentUrl, final String url) {
+        super("Not Found: " + url + " Parent: " + parentUrl, false, false);
     }
 
 }