Skip to content

Commit

Permalink
Clean up compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Borja Lorente committed Dec 24, 2018
1 parent fd99e5d commit e1f7c66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rust/engine/logging/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use lazy_static::lazy_static;
use log::{log, set_logger, set_max_level, LevelFilter, Log, Metadata, Record};
use parking_lot::{Mutex, RwLock};
use parking_lot::Mutex;
use simplelog::Config;
use simplelog::WriteLogger;
use std::fs::File;
Expand All @@ -13,7 +13,7 @@ use std::path::PathBuf;
use TryIntoPythonLogLevel;

lazy_static! {
pub static ref LOGGER: Logger = Logger::new(LevelFilter::Off);
pub static ref LOGGER: Logger = Logger::new();
}

pub struct Logger {
Expand All @@ -22,7 +22,7 @@ pub struct Logger {
}

impl Logger {
pub fn new(level: LevelFilter) -> Logger {
pub fn new() -> Logger {
Logger {
pantsd_log: Mutex::new(MaybeWriteLogger::empty()),
stderr_log: Mutex::new(MaybeWriteLogger::empty()),
Expand Down Expand Up @@ -81,7 +81,7 @@ impl Logger {
}

impl Log for Logger {
fn enabled(&self, metadata: &Metadata) -> bool {
fn enabled(&self, _metadata: &Metadata) -> bool {
// Individual log levels are handled by each sub-logger,
// And a global filter is applied to set_max_level.
// No need to filter here.
Expand Down

0 comments on commit e1f7c66

Please sign in to comment.