From dcfafdd101d0b19ab39b2d85e656da92cd3044ce Mon Sep 17 00:00:00 2001 From: arkpar Date: Fri, 15 Jan 2016 01:44:57 +0100 Subject: [PATCH] Removed log format string --- src/bin/client.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bin/client.rs b/src/bin/client.rs index 5ef177c64..3dda6fc22 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -6,19 +6,15 @@ extern crate env_logger; use std::io::*; use std::env; -use log::{LogRecord, LogLevelFilter}; +use log::{LogLevelFilter}; use env_logger::LogBuilder; use util::hash::*; use ethcore::service::ClientService; use ethcore::ethereum; fn setup_log() { - let format = |record: &LogRecord| { - format!("{} - {}", record.level(), record.args()) - }; - let mut builder = LogBuilder::new(); - builder.format(format).filter(None, LogLevelFilter::Info); + builder.filter(None, LogLevelFilter::Info); if env::var("RUST_LOG").is_ok() { builder.parse(&env::var("RUST_LOG").unwrap());