summaryrefslogtreecommitdiffstats
path: root/src/logging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/logging.rs')
-rw-r--r--src/logging.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logging.rs b/src/logging.rs
index 421223e8..5691eb78 100644
--- a/src/logging.rs
+++ b/src/logging.rs
@@ -31,6 +31,7 @@ impl<T: Send + io::Write> Logger<T> {
// False positive, see: https://github.com/rust-lang-nursery/rust-clippy/issues/734
#[cfg_attr(feature = "clippy", allow(new_ret_no_self))]
pub fn new(output: T, level: log::LevelFilter) -> Logger<io::LineWriter<T>> {
+ log::set_max_level(level);
Logger {
level,
output: sync::Mutex::new(io::LineWriter::new(output))