Skip to content

Commit

Permalink
Fix forgotten crate import
Browse files Browse the repository at this point in the history
  • Loading branch information
ruieduardolopes committed Jul 29, 2019
1 parent 3fd779e commit 4b458e4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/report/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use slog::{info, o, Drain, Logger};
use std::fs::{File, OpenOptions};
use std::io::Error;

use crate::capture::results::CaptureResult;

use slog::{info, o, Drain, Logger};
use slog_async::OverflowStrategy;
use std::env;
use std::fs::{File, OpenOptions};
use std::io::Error;
use std::path::PathBuf;

pub fn init(ingress: bool, interface: String) -> Logger {
let home = match env::var_os("HOME") {
Expand All @@ -31,7 +32,10 @@ pub fn init(ingress: bool, interface: String) -> Logger {

let file_decorator = slog_term::PlainDecorator::new(log_file);
let file_drain = slog_term::FullFormat::new(file_decorator).build().fuse();
let file_drain = slog_async::Async::new(file_drain).overflow_strategy(OverflowStrategy::Block).build().fuse();
let file_drain = slog_async::Async::new(file_drain)
.overflow_strategy(OverflowStrategy::Block)
.build()
.fuse();
slog::Logger::root(file_drain, o!())
}

Expand Down

0 comments on commit 4b458e4

Please sign in to comment.