From bb7b08bc9191a2b1c6fa8a955370941220ddfe88 Mon Sep 17 00:00:00 2001 From: arkanovicz Date: Tue, 9 Nov 2021 17:34:42 +0100 Subject: [PATCH] Don't log exceptions that are part of the debug output --- src/main/java/com/republicate/stillness/StillnessTool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/republicate/stillness/StillnessTool.java b/src/main/java/com/republicate/stillness/StillnessTool.java index 160feb1..bd775ee 100644 --- a/src/main/java/com/republicate/stillness/StillnessTool.java +++ b/src/main/java/com/republicate/stillness/StillnessTool.java @@ -116,7 +116,8 @@ public Pair debugThrow(Reader source,String template) { _stillness.setDebugOutput(trace); _stillness.scrape(source,template,_context); } catch (Exception e) { - logger.error("exception", e); + // this should be logged upstream + // logger.error("exception", e); ex = e; } finally { if (ex != null) {