Skip to content

Commit

Permalink
fix(spoon): Improve error logging to contain badsmell classname (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt authored Jul 15, 2023
1 parent e2f53e5 commit a493511
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public static Optional<AnalyzerResult> toAnalyzerResult(BadSmell badSmell) {

} catch (Exception e) {
logger.atWarning().withCause(e).withStackTrace(StackSize.NONE).log(
"Could not convert bad smell to analyzer result %s", badSmell.getClass());
"Could not convert bad smell to analyzer result %s",
badSmell.getClass().getCanonicalName());
return Optional.empty();
}
}
Expand Down

0 comments on commit a493511

Please sign in to comment.