Skip to content

Commit

Permalink
Log about how rerunner is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Dirkse committed Oct 7, 2024
1 parent a89ceb8 commit 38ca622
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/nl/nn/testtool/TestTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ public Debugger getDebugger() {
}

public void setRerunner(Rerunner rerunner) {
if (rerunner == null) {
log.warn("TestTool.setRerunner() is called with null argument");
} else {
log.debug("TestTool.setRerunner() is called with non-null argument");
}
this.rerunner = rerunner;
}

Expand Down Expand Up @@ -1000,8 +1005,10 @@ public String rerun(String correlationId, Report report, SecurityContext securit
String errorMessage = null;
if (rerunner == null && debugger == null) {
errorMessage = "No rerunner or debugger configured";
log.error("No rerunner or debugger configured");
} else if (rerunner != null && debugger != null) {
errorMessage = "Both rerunner and debugger configured";
log.error("Both rerunner and debugger configured");
} else {
boolean reportGeneratorEnabled = isReportGeneratorEnabled();
if (reportGeneratorEnabled) {
Expand Down

0 comments on commit 38ca622

Please sign in to comment.