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:
parent
c477fa0089
commit
56a1cb2b76
|
@ -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"
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue