File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/main/java/com/codingchili Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ private void waitForElasticServerAvailability() {
6767 try {
6868 Desktop .getDesktop ().browse (new URI (Configuration .getWebsiteURL ()));
6969 } catch (Exception e ) {
70- logger .onError (e );
70+ logger .displayNotAvailable (e );
7171 }
7272 consumer .pause ();
7373 });
Original file line number Diff line number Diff line change @@ -215,4 +215,12 @@ public static String traceToText(Throwable throwable) {
215215 public void websiteStarted (int webPort ) {
216216 logger .info ("Started website on port " + webPort );
217217 }
218+
219+ /**
220+ * On failure to access the desktop/display.
221+ * @param e exception thrown when attempting to open the browser.
222+ */
223+ public void displayNotAvailable (Exception e ) {
224+ logger .warning ("Failed to open website: " + e .getMessage ());
225+ }
218226}
You can’t perform that action at this time.
0 commit comments