Skip to content

Commit 54bb6a4

Browse files
app optims: log exception
1 parent 9cc5b73 commit 54bb6a4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • src/main/java/com/testingbot/tunnel

src/main/java/com/testingbot/tunnel/App.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public static void main(String... args) throws Exception {
349349
}
350350

351351
if (commandLine.hasOption("web")) {
352-
LocalWebServer local = new LocalWebServer(commandLine.getOptionValue("web"));
352+
new LocalWebServer(commandLine.getOptionValue("web"));
353353
}
354354

355355
app.init();
@@ -374,7 +374,8 @@ private String[] getUserData() {
374374
if (strLine != null) {
375375
return strLine.split(":");
376376
}
377-
} catch (IOException ignored) {
377+
} catch (IOException e) {
378+
Logger.getLogger(App.class.getName()).log(Level.WARNING, "Could not read credentials from .testingbot file", e);
378379
}
379380
}
380381

0 commit comments

Comments
 (0)