From 15345b6780dc3ab55b8b69f88e7634d80c912b72 Mon Sep 17 00:00:00 2001 From: Andreas Tolfsen Date: Tue, 11 Apr 2017 20:38:58 +0100 Subject: [PATCH] marionette: reduce importance of marionette communication The log messages of what geckodriver sends and receives from the Marionette server will now be logged at trace level. This brings parity to the way protocol chatter is logged in the Marionette server. --- src/marionette.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/marionette.rs b/src/marionette.rs index 9740ceca..5c274c76 100644 --- a/src/marionette.rs +++ b/src/marionette.rs @@ -1142,7 +1142,6 @@ impl MarionetteConnection { let poll_attempts = timeout / poll_interval; let mut poll_attempt = 0; - info!("Connecting to Marionette on {}:{}", DEFAULT_HOST, self.port); loop { match TcpStream::connect(&(DEFAULT_HOST, self.port)) { Ok(stream) => { @@ -1150,7 +1149,7 @@ impl MarionetteConnection { break }, Err(e) => { - debug!(" connection attempt {}/{}", poll_attempt, poll_attempts); + trace!(" connection attempt {}/{}", poll_attempt, poll_attempts); if poll_attempt <= poll_attempts { poll_attempt += 1; sleep(Duration::from_millis(poll_interval)); @@ -1162,7 +1161,7 @@ impl MarionetteConnection { } }; - debug!("TCP connection established"); + debug!("Connected to Marionette on {}:{}", DEFAULT_HOST, self.port); try!(self.handshake()); Ok(()) @@ -1217,7 +1216,7 @@ impl MarionetteConnection { fn send(&mut self, msg: Json) -> WebDriverResult { let data = self.encode_msg(msg); - debug!("→ {}", data); + trace!("→ {}", data); match self.stream { Some(ref mut stream) => { @@ -1291,7 +1290,7 @@ impl MarionetteConnection { // TODO(jgraham): Need to handle the error here let data = String::from_utf8(payload).unwrap(); - debug!("← {}", data); + trace!("← {}", data); Ok(data) }