From e2f53e5ba268e1352184a5eb9343e76e9b89a09b Mon Sep 17 00:00:00 2001 From: Martin Wittlinger Date: Sun, 16 Jul 2023 00:16:40 +0200 Subject: [PATCH] fix(spoon): Improve error logging to contain badsmell classname --- .../spoon/code_solver/analyzer/spoon/AnalyzerResultVisitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/analyzer/spoon/AnalyzerResultVisitor.java b/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/analyzer/spoon/AnalyzerResultVisitor.java index 6d67f2bd2..18cbcaa83 100644 --- a/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/analyzer/spoon/AnalyzerResultVisitor.java +++ b/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/analyzer/spoon/AnalyzerResultVisitor.java @@ -39,7 +39,7 @@ public static Optional toAnalyzerResult(BadSmell badSmell) { } catch (Exception e) { logger.atWarning().withCause(e).withStackTrace(StackSize.NONE).log( - "Could not convert bad smell to analyzer result"); + "Could not convert bad smell to analyzer result %s", badSmell.getClass()); return Optional.empty(); } }