Removed log format string

This commit is contained in:
arkpar 2016-01-15 01:44:57 +01:00
parent f6dff48312
commit dcfafdd101

View File

@ -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());