]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/logging: fix logging from plugins 12472/head
authorJason Ish <jason.ish@oisf.net>
Tue, 21 Jan 2025 15:40:34 +0000 (09:40 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 24 Jan 2025 16:07:50 +0000 (10:07 -0600)
commit99096699c02ab4c756e40feffed27ac857db4915
tree8eb4e8a9eeca294f12ee807ac9e425a724fd8016
parentd63ad75d91014018acd950b0a35e03e23c38e8cc
rust/logging: fix logging from plugins

Commit 2bcc66da5826fa0e6e074a756754b295e5ac4da2 broke logging from
plugins:

- debug visibility was reduced making it unusable from an external crate
- the plugins view of the log level was broken

To fix:
- make debug pub
- minor change to initialization of the log LEVEL as seen by the plugin
  so its seen by the plugin. I'm not really sure why the previous
  version wasn't working though, but this one does
rust/src/lib.rs
rust/src/plugin.rs