Skip to content

Commit

Permalink
rust/plugins: fix logging initialization
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jasonish committed Jan 21, 2025
1 parent 8e8a1eb commit 8b12670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 8b12670

Please sign in to comment.