Bug 1461270 - [geckdriver] Log Marionette host and port.
geckodriver should log to which host and port it is trying
to create a connection with Marionette.
MozReview-Commit-ID: DxWSsDDMKCL
--- a/testing/geckodriver/src/marionette.rs
+++ b/testing/geckodriver/src/marionette.rs
@@ -1337,17 +1337,22 @@ impl MarionetteConnection {
}
}
pub fn connect(&mut self, browser: &mut Option<FirefoxProcess>) -> WebDriverResult<()> {
let timeout = time::Duration::from_secs(60);
let poll_interval = time::Duration::from_millis(100);
let now = time::Instant::now();
- debug!("Waiting {}s to connect to browser", timeout.as_secs());
+ debug!(
+ "Waiting {}s to connect to browser on {}:{}",
+ timeout.as_secs(),
+ DEFAULT_HOST,
+ self.port
+ );
loop {
// immediately abort connection attempts if process disappears
if let &mut Some(ref mut runner) = browser {
let exit_status = match runner.try_wait() {
Ok(Some(status)) => Some(
status
.code()
.map(|c| c.to_string())