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 d793fbed9..6d67f2bd2 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 @@ -38,7 +38,7 @@ public static Optional toAnalyzerResult(BadSmell badSmell) { return Optional.ofNullable(badSmell.accept(analyzerResultVisitor)); } catch (Exception e) { - logger.atWarning().withCause(e).withStackTrace(StackSize.SMALL).log( + logger.atWarning().withCause(e).withStackTrace(StackSize.NONE).log( "Could not convert bad smell to analyzer result"); return Optional.empty(); } diff --git a/github-bot/src/main/java/io/github/martinwitt/laughing_train/services/SpoonAnalyzerService.java b/github-bot/src/main/java/io/github/martinwitt/laughing_train/services/SpoonAnalyzerService.java index b7e0dc542..d356c4f01 100644 --- a/github-bot/src/main/java/io/github/martinwitt/laughing_train/services/SpoonAnalyzerService.java +++ b/github-bot/src/main/java/io/github/martinwitt/laughing_train/services/SpoonAnalyzerService.java @@ -40,7 +40,6 @@ public CodeAnalyzerResult analyze(AnalyzerRequest request) { .map(v -> v.ruleID().toString()) .distinct() .collect(Collectors.joining(","))); - CodeAnalyzerResult.Success success = new CodeAnalyzerResult.Success(analyze, project.project()); analyzerResultPersistenceService.persistResults(success); return success;