Skip to content

Commit

Permalink
Log URL httpds are listening on when starting servers
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Mar 20, 2020
1 parent 322981a commit e88e764
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
6 changes: 5 additions & 1 deletion java/server/src/org/openqa/selenium/grid/commands/Hub.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ public Executable configure(String... args) {
server.start();

BuildInfo info = new BuildInfo();
LOG.info(String.format("Started Selenium hub %s (revision %s)", info.getReleaseLabel(), info.getBuildRevision()));
LOG.info(String.format(
"Started Selenium hub %s (revision %s): %s",
info.getReleaseLabel(),
info.getBuildRevision(),
server.getUrl()));
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ public Executable configure(String... args) {
server.start();

BuildInfo info = new BuildInfo();
LOG.info(String.format("Started Selenium standalone %s (revision %s)", info.getReleaseLabel(), info.getBuildRevision()));
LOG.info(String.format(
"Started Selenium standalone %s (revision %s): %s",
info.getReleaseLabel(),
info.getBuildRevision(),
server.getUrl()));
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ public Executable configure(String... args) {
server.start();

BuildInfo info = new BuildInfo();
LOG.info(String.format("Started Selenium distributor %s (revision %s)", info.getReleaseLabel(), info.getBuildRevision()));
LOG.info(String.format(
"Started Selenium distributor %s (revision %s): %s",
info.getReleaseLabel(),
info.getBuildRevision(),
server.getUrl()));
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ public Executable configure(String... args) {
server.start();

BuildInfo info = new BuildInfo();
LOG.info(String.format("Started Selenium node %s (revision %s)", info.getReleaseLabel(), info.getBuildRevision()));
LOG.info(String.format(
"Started Selenium node %s (revision %s): %s",
info.getReleaseLabel(),
info.getBuildRevision(),
server.getUrl()));

Regularly regularly = new Regularly("Register Node with Distributor");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ public Executable configure(String... args) {
server.start();

BuildInfo info = new BuildInfo();
LOG.info(String.format("Started Selenium router %s (revision %s)", info.getReleaseLabel(), info.getBuildRevision()));
LOG.info(String.format(
"Started Selenium router %s (revision %s): %s",
info.getReleaseLabel(),
info.getBuildRevision(),
server.getUrl()));
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ public Executable configure(String... args) {
server.start();

BuildInfo info = new BuildInfo();
LOG.info(String.format("Started Selenium session map %s (revision %s)", info.getReleaseLabel(), info.getBuildRevision()));
LOG.info(String.format(
"Started Selenium session map %s (revision %s): %s",
info.getReleaseLabel(),
info.getBuildRevision(),
server.getUrl()));
};
}
}

0 comments on commit e88e764

Please sign in to comment.