"cfg-if 1.0.0",
]
+[[package]]
+name = "env_logger"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd"
+dependencies = [
+ "atty",
+ "humantime",
+ "log 0.4.11",
+ "regex",
+ "termcolor",
+]
+
[[package]]
name = "erased-serde"
version = "0.3.12"
version = "0.0.1"
dependencies = [
"anyhow",
+ "env_logger",
"fehler",
"humantime",
"libc",
+ "log 0.4.11",
"nix 0.19.1",
"otter",
"structopt",
"url 1.7.2",
]
+[[package]]
+name = "termcolor"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
+dependencies = [
+ "winapi-util",
+]
+
[[package]]
name = "textwrap"
version = "0.11.0"
pub use anyhow::{anyhow, Context};
pub use fehler::{throw, throws};
+pub use log::{debug, error, info, trace, warn};
+pub use log::{log, log_enabled};
+pub use nix::unistd::LinkatFlags;
pub use structopt::StructOpt;
pub use thirtyfour_sync as t4;
-use nix::unistd::LinkatFlags;
pub use void::Void;
pub use t4::WebDriverCommands;
{
fn always_context(self, msg: &'static str) -> anyhow::Result<T> {
let x = self.context(msg);
- if x.is_ok() { eprintln!("completed {}.", msg) };
+ if x.is_ok() { info!("completed {}.", msg) };
x
}
fn just_warn(self, msg: &'static str) -> Option<T> {
#[throws(AE)]
pub fn setup() -> Setup {
+ env_logger::Builder::new()
+ .format_timestamp_micros()
+ .format_level(true)
+ .filter_module("otter_webdriver_tests", log::LevelFilter::Debug)
+ .filter_level(log::LevelFilter::Info)
+ .parse_env("OTTER_WDT_LOG")
+ .init();
+ debug!("starting");
+
let current_exe : String = env::current_exe()
.context("find current executable")?
.to_str()