Skip to content

Commit 3b3ca6e

Browse files
committed
Added logging of the scantime of every probe
Added logging of the hostname which was scanned
1 parent 9177a75 commit 3b3ca6e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/main/java/de/rub/nds/tlsscanner/MultiThreadedScanJobExecutor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public SiteReport execute(ScannerConfig config, ScanJob scanJob) {
134134
}
135135
executor.shutdown();
136136
pb.setExtraMessage("Finished");
137+
LOGGER.info("Finished scan for: " + hostname);
137138
return report;
138139
}
139140
}

src/main/java/de/rub/nds/tlsscanner/SingleThreadedScanJobExecutor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public SiteReport execute(ScannerConfig config, ScanJob scanJob) {
124124
afterProbe.analyze(report);
125125
}
126126
pb.setExtraMessage(getPaddedProbeName("Finished"));
127+
LOGGER.info("Finished scan for: " + hostname);
127128
return report;
128129
}
129130
}

src/main/java/de/rub/nds/tlsscanner/probe/TlsProbe.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ public ProbeType getType() {
5353

5454
@Override
5555
public ProbeResult call() {
56+
LOGGER.info("Executing:" + getProbeName());
57+
long startTime = System.currentTimeMillis();
5658
ProbeResult result = executeTest();
59+
long stopTime = System.currentTimeMillis();
60+
LOGGER.info("Finished " + getProbeName() + " - Took " + (stopTime - startTime) / 1000 + "s");
5761
return result;
5862
}
5963

0 commit comments

Comments
 (0)