From 8b126705ba0936f5989e0243d679e9ab5141a6b4 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 21 Jan 2025 13:32:49 -0600 Subject: [PATCH] rust/plugins: fix logging initialization With the recent refactor, the log level as seen by plugins was not being updated when being set through the C interface, so just set it directly upon plugin initialization. --- rust/src/plugin.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } }