Bug 1461270 - [geckdriver] Log Marionette host and port. draft
authorHenrik Skupin <mail@hskupin.info>
Mon, 14 May 2018 10:45:54 +0200
changeset 794840 a8a682545456d78de4522f71109b2d6711181e90
parent 794618 87cc179438941649616131ed9bb0c6f0766c8028
push id109791
push userbmo:hskupin@gmail.com
push dateMon, 14 May 2018 16:32:55 +0000
bugs1461270
milestone62.0a1
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
testing/geckodriver/src/marionette.rs
--- 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())