Skip to content

Commit

Permalink
Merge pull request rust-lang#1253 from Eijebong/log. r=emilio
Browse files Browse the repository at this point in the history
Update log to 0.4 and bump version
  • Loading branch information
emilio authored Feb 13, 2018
2 parents 174746f + 437cd73 commit a09a8ff
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 20 deletions.
131 changes: 120 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name = "bindgen"
readme = "README.md"
repository = "https://github.com/rust-lang-nursery/rust-bindgen"
documentation = "https://docs.rs/bindgen"
version = "0.32.3"
version = "0.33.0"
build = "build.rs"

include = [
Expand Down Expand Up @@ -54,11 +54,11 @@ proc-macro2 = "0.2"

[dependencies.env_logger]
optional = true
version = "0.4"
version = "0.5"

[dependencies.log]
optional = true
version = "0.3"
version = "0.4"

[features]
default = ["logging"]
Expand Down
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ use options::builder_from_flags;

pub fn main() {
#[cfg(feature = "logging")]
log::set_logger(|max_log_level| {
use env_logger::Logger;
let env_logger = Logger::new();
max_log_level.set(env_logger.filter());
Box::new(env_logger)
}).expect("Failed to set logger.");
env_logger::init();

let bind_args: Vec<_> = env::args().collect();

Expand Down

0 comments on commit a09a8ff

Please sign in to comment.