From 080f72a374843604d75f8266b06c3250d0c86a6b Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 4 Jul 2023 15:21:45 +0200 Subject: [PATCH] Commented exception print trace to avoid error cron email. --- .../statoolinfos/metrics/http/HttpAccessLogIterator.java | 2 +- .../statoolinfos/metrics/httperrorlog/HttpErrorLogAnalyzer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogIterator.java b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogIterator.java index 04f34bd..73d83ba 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogIterator.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogIterator.java @@ -229,7 +229,7 @@ public class HttpAccessLogIterator implements Iterator catch (Exception exception) { logger.warn("Error parsing line [{}][{}]", line, exception.getMessage()); - exception.printStackTrace(); + // exception.printStackTrace(); } } else diff --git a/src/fr/devinsy/statoolinfos/metrics/httperrorlog/HttpErrorLogAnalyzer.java b/src/fr/devinsy/statoolinfos/metrics/httperrorlog/HttpErrorLogAnalyzer.java index d978ac8..bcac87e 100644 --- a/src/fr/devinsy/statoolinfos/metrics/httperrorlog/HttpErrorLogAnalyzer.java +++ b/src/fr/devinsy/statoolinfos/metrics/httperrorlog/HttpErrorLogAnalyzer.java @@ -119,7 +119,7 @@ public class HttpErrorLogAnalyzer catch (Exception exception) { logger.warn("Error parsing line [{}][{}]", line, exception.getMessage()); - exception.printStackTrace(); + // exception.printStackTrace(); this.errorCount += 1; } }