Skip to content

rust/ffi: add logging (debug) wrappers - #301

Merged
jasonish merged 1 commit into
mainfrom
codecov/v2
Feb 21, 2026
Merged

rust/ffi: add logging (debug) wrappers#301
jasonish merged 1 commit into
mainfrom
codecov/v2

Conversation

@jasonish

Copy link
Copy Markdown
Owner

Mostly a copy of Suricata core's logging wrappers into the ffi crate.

These are not yet used by Suricata-core as they do require the
Suricata library to be available, which is not the case with tests. And
the cfg(test) parameter is not passed through to sub-crates.

However, this does allow a plugin (or library) to call the logging
macros without depending on the "suricata" crate.

Ticket: OISF#7666

Mostly a copy of Suricata core's logging wrappers into the ffi crate.

These are not yet used by Suricata-core as they do require the
Suricata library to be available, which is not the case with tests. And
the `cfg(test)` parameter is not passed through to sub-crates.

However, this does allow a plugin (or library) to call the logging
macros without depending on the "suricata" crate.

Ticket: OISF#7666
@codecov-commenter

codecov-commenter commented Feb 21, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.17%. Comparing base (984f009) to head (2ac2bda).
⚠️ Report is 1 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #301      +/-   ##
==========================================
- Coverage   82.18%   82.17%   -0.02%     
==========================================
  Files        1000     1000              
  Lines      263675   263661      -14     
==========================================
- Hits       216694   216652      -42     
- Misses      46981    47009      +28     
Flag Coverage Δ
fuzzcorpus 60.19% <ø> (+<0.01%) ⬆️
livemode 18.75% <ø> (-0.15%) ⬇️
netns 18.94% <ø> (-0.01%) ⬇️
pcap 44.68% <ø> (-0.02%) ⬇️
suricata-verify 65.49% <ø> (-0.01%) ⬇️
unittests 59.24% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jasonish
jasonish merged commit 2ac2bda into main Feb 21, 2026
109 checks passed
@jasonish
jasonish deleted the codecov/v2 branch June 2, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants