diff options
author | Andreas Tolfsen <ato@mozilla.com> | 2017-05-08 16:44:54 +0300 |
---|---|---|
committer | jgraham <james@hoppipolla.co.uk> | 2017-05-08 16:44:54 +0300 |
commit | 60e7a430dc38a9e1921928c0cd996bb5fc00198b (patch) | |
tree | ca74d0dd6455648e2a1abd7d9642053fdadce6a3 | |
parent | d30e757d4496e231010526cee6e5866ceadfb9d1 (diff) |
Make trace logs safe for windows prompt (#722)old
* marionette: make trace logs safe for windows prompt
The symbols "←" and "→" are encodeed as "?" in the Windows command
prompt. To make the logs from this system useful, use ASCII versions
of the arrows.
-rw-r--r-- | src/marionette.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/marionette.rs b/src/marionette.rs index 81463c2..1039795 100644 --- a/src/marionette.rs +++ b/src/marionette.rs @@ -1352,7 +1352,7 @@ impl MarionetteConnection { fn send(&mut self, msg: Json) -> WebDriverResult<String> { let data = self.encode_msg(msg); - trace!("→ {}", data); + trace!("-> {}", data); match self.stream { Some(ref mut stream) => { @@ -1426,7 +1426,7 @@ impl MarionetteConnection { // TODO(jgraham): Need to handle the error here let data = String::from_utf8(payload).unwrap(); - trace!("← {}", data); + trace!("<- {}", data); Ok(data) } |