woops, forgot to hook up logging in tests

This commit is contained in:
Dustin Carlino 2018-11-26 14:46:27 -08:00
parent f26de57039
commit cb4c5079a6
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,7 @@ convert_osm = { path = "../convert_osm" }
dimensioned = { git = "https://github.com/paholg/dimensioned", rev = "0e1076ebfa5128d1ee544bdc9754c948987b6fe3", features = ["serde"] } dimensioned = { git = "https://github.com/paholg/dimensioned", rev = "0e1076ebfa5128d1ee544bdc9754c948987b6fe3", features = ["serde"] }
gag = "0.1.10" gag = "0.1.10"
geom = { path = "../geom" } geom = { path = "../geom" }
log = "0.4.5"
map_model = { path = "../map_model" } map_model = { path = "../map_model" }
sim = { path = "../sim" } sim = { path = "../sim" }
structopt = "0.2" structopt = "0.2"

View File

@ -3,6 +3,7 @@ extern crate convert_osm;
extern crate dimensioned; extern crate dimensioned;
extern crate gag; extern crate gag;
extern crate geom; extern crate geom;
extern crate log;
extern crate map_model; extern crate map_model;
extern crate sim; extern crate sim;
extern crate structopt; extern crate structopt;
@ -18,7 +19,12 @@ mod transit;
use structopt::StructOpt; use structopt::StructOpt;
static LOG_ADAPTER: abstutil::LogAdapter = abstutil::LogAdapter;
fn main() { fn main() {
log::set_max_level(log::LevelFilter::Debug);
log::set_logger(&LOG_ADAPTER).unwrap();
let mut t = runner::TestRunner::new(runner::Flags::from_args()); let mut t = runner::TestRunner::new(runner::Flags::from_args());
map_conversion::run(t.suite("map_conversion")); map_conversion::run(t.suite("map_conversion"));