webdriver: Make log output safe for windows prompt (#96)

* server: make log output safe for windows prompt

The characters "←" and "→" are obfuscated in the Windows command
prompt.  Use ASCII versions.

Source-Repo: https://github.com/mozilla/webdriver-rust
Source-Revision: 6de6e225e14b545381719e2e97398bc1a8f87b13

committer: jgraham <james@hoppipolla.co.uk>

--HG--
extra : subtree_source : http%3A//tristan.corp.lon2.mozilla.com%3A8000
extra : subtree_revision : 549018e98173ca5c72e4ecb32c7cf9c0cf363527
This commit is contained in:
Andreas Tolfsen 2017-05-08 14:45:19 +01:00
Родитель 7cedc56dd8
Коммит b64fa895d7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -173,7 +173,7 @@ impl<U: WebDriverExtensionRoute> Handler for HttpHandler<U> {
req.read_to_string(&mut body).unwrap();
}
debug!(" {} {} {}", req.method, req.uri, body);
debug!("-> {} {} {}", req.method, req.uri, body);
match req.uri {
AbsolutePath(path) => {
@ -218,7 +218,7 @@ impl<U: WebDriverExtensionRoute> Handler for HttpHandler<U> {
Err(err) => (err.http_status(), err.to_json_string()),
};
debug!(" {} {}", status, resp_body);
debug!("<- {} {}", status, resp_body);
{
let resp_status = res.status_mut();