Skip to content

Commit 1b655e9

Browse files
committed
deleted unnecessary logging
1 parent 21cada3 commit 1b655e9

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ public static void main(String[] args) throws IOException {
4141
long time = System.currentTimeMillis();
4242
LOGGER.info("Performing Scan, this may take some time...");
4343
SiteReport report = scanner.scan();
44-
LOGGER.info("Scanned in:" + ((System.currentTimeMillis()-time)/1000) + "s");
44+
LOGGER.info("Scanned in:" + ((System.currentTimeMillis()-time)/1000) + "s\n");
4545
// ANSI escape sequences to erase the progressbar
46-
ConsoleLogger.CONSOLE.info("\033[1A\033[2KScanned in: " + ((System.currentTimeMillis()-time)/1000) + "s\n" + report.getFullReport(config.getReportDetail()));
46+
if(!config.getGeneralDelegate().isDebug()){
47+
ConsoleLogger.CONSOLE.info("\033[1A\033[2K");
48+
}
49+
ConsoleLogger.CONSOLE.info("Scanned in: " + ((System.currentTimeMillis()-time)/1000) + "s\n" + report.getFullReport(config.getReportDetail()));
4750
} catch (ConfigurationException E) {
4851
LOGGER.info("Encountered a ConfigurationException aborting.");
4952
LOGGER.warn(E);

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ private SiteReport scan(ScannerConfig config, ScanJob scanJob, ProgressBar pb) {
146146
afterProbe.analyze(report);
147147
}
148148
executor.shutdown();
149-
if(pb != null){
150-
pb.setExtraMessage("Finished");
151-
}
152149
LOGGER.info("Finished scan for: " + hostname);
153150
return report;
154151
}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ private SiteReport scan(ScannerConfig config, ScanJob scanJob, ProgressBar pb){
142142
for (AfterProbe afterProbe : scanJob.getAfterProbes()) {
143143
afterProbe.analyze(report);
144144
}
145-
if (pb != null) {
146-
pb.setExtraMessage(getPaddedProbeName("Finished"));
147-
}
148145
LOGGER.info("Finished scan for: " + hostname);
149146
return report;
150147
}

0 commit comments

Comments
 (0)