env_logger: 0.4.* -> 0.5.0-rc.1

This commit is contained in:
Matthias Beyer 2017-12-07 22:07:01 +01:00
parent 0aba7d2939
commit c45130ddd0
14 changed files with 14 additions and 18 deletions

View file

@ -32,7 +32,7 @@ libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
[dev-dependencies]
toml-query = "0.6"
env_logger = "0.4"
env_logger = "0.5.0-rc.1"
[dev-dependencies.libimagutil]
version = "0.6.0"

View file

@ -273,8 +273,7 @@ mod tests {
}
fn setup_logging() {
use env_logger;
let _ = env_logger::init().unwrap_or(());
let _ = ::env_logger::try_init();
}
#[test]

View file

@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
[dependencies]
clap = ">=2.17"
env_logger = "0.4"
env_logger = "0.5.0-rc.1"
toml = "0.4"
xdg-basedir = "1.0"
itertools = "0.7"

View file

@ -340,7 +340,7 @@ impl<'a> Runtime<'a> {
use env_logger;
if env_var("IMAG_LOG_ENV").is_ok() {
env_logger::init().unwrap();
let _ = env_logger::try_init();
} else {
let logger = ImagLogger::new(matches, config)
.map_err_trace()

View file

@ -39,7 +39,7 @@ libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
[dev-dependencies]
tempdir = "0.3"
env_logger = "0.4"
env_logger = "0.5.0-rc.1"
[features]
default = []

View file

@ -30,5 +30,5 @@ libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
[dev-dependencies]
env_logger = "0.4"
env_logger = "0.5.0-rc.1"

View file

@ -175,7 +175,7 @@ mod tests {
#[test]
fn test_creating_category_creates_store_entry_with_header_field_set() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let category_name = "examplecategory";
let store = get_store();
let res = store.create_category(category_name);

View file

@ -26,5 +26,5 @@ libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
[dev-dependencies]
env_logger = "0.4"
env_logger = "0.5.0-rc.1"

View file

@ -108,8 +108,7 @@ mod tests {
use entry::*;
fn setup_logging() {
use env_logger;
let _ = env_logger::init().unwrap_or(());
let _ = ::env_logger::try_init;
}
fn get_store() -> Store {

View file

@ -34,5 +34,5 @@ libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
[dev-dependencies]
env_logger = "0.4"
env_logger = "0.5.0-rc.1"

View file

@ -411,7 +411,7 @@ mod tests {
fn setup_logging() {
use env_logger;
let _ = env_logger::init().unwrap_or(());
let _ = env_logger::try_init();
}
pub fn get_store() -> Store {

View file

@ -767,8 +767,7 @@ mod test {
use super::Link;
fn setup_logging() {
use env_logger;
let _ = env_logger::init().unwrap_or(());
let _ = ::env_logger::try_init();
}
pub fn get_store() -> Store {

View file

@ -24,7 +24,7 @@ log = "0.4.0-rc.1"
hoedown = "6.0.0"
url = "1.5"
error-chain = "0.11"
env_logger = "0.4"
env_logger = "0.5.0-rc.1"
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }

View file

@ -218,8 +218,7 @@ mod tests {
use libimagentrylink::internal::InternalLinker;
fn setup_logging() {
use env_logger;
let _ = env_logger::init().unwrap_or(());
let _ = ::env_logger::try_init();
}
pub fn get_store() -> Store {