Fix logging with set_boxed_logger, add std feature to dep

https://github.com/rust-lang-nursery/log/issues/303
This commit is contained in:
ice_iix 2018-10-28 19:45:57 -07:00
parent c477fa0089
commit 56a1cb2b76
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ image = "0.20.0"
rand = "0.5.5"
hex = "0.3.2"
base64 = "0.9.3"
log = "0.4.5"
log = { version = "0.4.5", features = ["std"] }
cgmath = "0.16.1"
lazy_static = "1.1.0"
collision = "0.18.0"

View File

@ -180,7 +180,7 @@ fn main() {
let proxy = console::ConsoleProxy::new(con.clone());
// TODO: fix error[E0423]: expected function, found macro `log::set_boxed_logger`
//log::set_boxed_logger(Box::new(proxy)).unwrap();
log::set_boxed_logger(Box::new(proxy)).unwrap();
log::set_max_level(log::LevelFilter::Trace);
info!("Starting steven");