diff --git a/rust/src/lib.rs b/rust/src/lib.rs index f28e4c249ace..ad280a368d2d 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -83,7 +83,7 @@ extern crate suricata_derive; pub mod core; #[macro_use] -pub(crate) mod debug; +pub mod debug; pub mod common; pub mod conf; diff --git a/rust/src/plugin.rs b/rust/src/plugin.rs index 7f3758640846..db47131848e5 100644 --- a/rust/src/plugin.rs +++ b/rust/src/plugin.rs @@ -19,9 +19,9 @@ pub fn init() { unsafe { - let context = super::core::SCGetContext(); - super::core::init_ffi(context); + let context = crate::core::SCGetContext(); + crate::core::init_ffi(context); - super::debug::SCSetRustLogLevel(super::debug::SCLogGetLogLevel()); + crate::debug::LEVEL = crate::debug::SCLogGetLogLevel(); } }