Skip to content

Commit 46eee7a

Browse files
authored
Bleggett/fixups (#3)
* license * fixup * Fix logger
1 parent 04d5629 commit 46eee7a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/source_plugin/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use std::io::BufWriter;
1212
use std::thread;
1313
use std::time::Duration;
1414
use tokio::{runtime, sync::mpsc, sync::oneshot};
15+
use env_logger::Env;
1516

1617
use crate::EderaPlugin;
1718

@@ -104,6 +105,9 @@ impl SourcePlugin for EderaPlugin {
104105
type Event<'a> = falco_event::events::RawEvent<'a>;
105106

106107
fn open(&mut self, _params: Option<&str>) -> Result<Self::Instance, Error> {
108+
109+
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
110+
107111
log::set_max_level(log::LevelFilter::Trace);
108112
let runtime = runtime::Builder::new_multi_thread().enable_all().build()?;
109113
debug!("spawning event task");

0 commit comments

Comments
 (0)