summary history branches tags files
commit:fb4fe95e4a6070ab43610c56146f6ac227045469
author:Trevor Bentley
committer:Trevor Bentley
date:Mon Apr 2 13:13:27 2018 +0200
parents:71175c2d72013195c18c67315e1eda4152e1509f
Bump dependency versions
diff --git a/Cargo.toml b/Cargo.toml
line changes: +3/-3
index ea14e14..fe7c1d5
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,15 +16,15 @@ dummy = []
 
 [dependencies]
 time = "0.1"
-log = {version = "0.3", optional = true }
+log = {version = "0.4", optional = true }
 
 [dependencies.log4rs]
-version = "0.6"
+version = "0.8"
 optional = true
 features = ["rolling_file_appender"]
 
 [dev-dependencies]
-log = "0.3"
+log = "0.4"
 
 [target."cfg(target_os = \"macos\")".dependencies]
 objc-foundation = "0.1.1"

diff --git a/src/lib.rs b/src/lib.rs
line changes: +4/-4
index 3c354cf..dd0da39
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -323,7 +323,7 @@ pub fn create_logger(filename: &str,
                      dir: LogDir,
                      max_size_mb: u32,
                      backup_count: u32) -> Result<String, String> {
-    use log::LogLevelFilter;
+    use log::LevelFilter;
     use self::log4rs::append::console::ConsoleAppender;
     use self::log4rs::append::rolling_file::RollingFileAppender;
     use self::log4rs::append::rolling_file::policy::compound::CompoundPolicy;
@@ -351,12 +351,12 @@ pub fn create_logger(filename: &str,
     let config = Config::builder()
         .appender(Appender::builder().build("stdout", Box::new(stdout)))
         .appender(Appender::builder().build("requests", Box::new(rolling)))
-        .logger(Logger::builder().build("app::backend::db", LogLevelFilter::Info))
+        .logger(Logger::builder().build("app::backend::db", LevelFilter::Info))
         .logger(Logger::builder()
                 .appender("requests")
                 .additive(false)
-                .build("app::requests", LogLevelFilter::Info))
-        .build(Root::builder().appender("stdout").appender("requests").build(LogLevelFilter::Info))
+                .build("app::requests", LevelFilter::Info))
+        .build(Root::builder().appender("stdout").appender("requests").build(LevelFilter::Info))
         .unwrap();
     match log4rs::init_config(config) {
         Ok(_) => Ok(log_path),