Skip to content

Commit 8f01913

Browse files
authored
I had missed that the Falco rust SDK already initializes the logger for us (#20)
1 parent 1b2a22c commit 8f01913

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/source_plugin/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::proto::generated::protect::control::v1::{
22
MonitorZoneKernelEventReply, monitor_zone_kernel_event_reply::Reply,
33
};
44
use anyhow::{Error, Result, anyhow};
5-
use env_logger::Env;
65
use falco_event::events::EventToBytes;
76
use falco_plugin::FailureReason;
87
use falco_plugin::source::{EventBatch, EventInput, SourcePlugin, SourcePluginInstance};
@@ -105,9 +104,6 @@ impl SourcePlugin for EderaPlugin {
105104
type Event<'a> = falco_event::events::RawEvent<'a>;
106105

107106
fn open(&mut self, _params: Option<&str>) -> Result<Self::Instance, Error> {
108-
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
109-
110-
log::set_max_level(log::LevelFilter::Trace);
111107
let runtime = runtime::Builder::new_multi_thread().enable_all().build()?;
112108
debug!("spawning event task");
113109
// TODO(bml) unbounded is probably best here but backpressure might be good in the future.

0 commit comments

Comments
 (0)