From 00d778c9f3fd26dd9f5873bebbe3e6b0d6508be0 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 20 Jan 2022 16:27:25 +0100 Subject: [PATCH] Imporved error message. --- src/fr/devinsy/statoolinfos/crawl/Crawler.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/crawl/Crawler.java b/src/fr/devinsy/statoolinfos/crawl/Crawler.java index 9fe667f..dcd240f 100644 --- a/src/fr/devinsy/statoolinfos/crawl/Crawler.java +++ b/src/fr/devinsy/statoolinfos/crawl/Crawler.java @@ -117,28 +117,24 @@ public class Crawler logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage()); this.journal.add(url, parentURL, CrawlStatus.CONNECTERROR); downloadFile = null; - exception.printStackTrace(); } catch (java.net.SocketException exception) { logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage()); this.journal.add(url, parentURL, CrawlStatus.CONNECTERROR); downloadFile = null; - exception.printStackTrace(); } catch (FileNotFoundException exception) { logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage()); this.journal.add(url, parentURL, CrawlStatus.URLNOTFOUND); downloadFile = null; - exception.printStackTrace(); } catch (IOException exception) { logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage()); this.journal.add(url, parentURL, CrawlStatus.DOWNLOADERROR); downloadFile = null; - exception.printStackTrace(); } if (downloadFile != null)