Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust/logging: fix logging from plugins #12472

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

jasonish
Copy link
Member

Commit 2bcc66d 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

Commit 2bcc66d 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
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 80.52%. Comparing base (d63ad75) to head (9909669).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12472      +/-   ##
==========================================
- Coverage   80.52%   80.52%   -0.01%     
==========================================
  Files         923      923              
  Lines      259176   259176              
==========================================
- Hits       208708   208697      -11     
- Misses      50468    50479      +11     
Flag Coverage Δ
fuzzcorpus 56.06% <0.00%> (+<0.01%) ⬆️
livemode 19.38% <0.00%> (-0.04%) ⬇️
pcap 44.20% <0.00%> (+<0.01%) ⬆️
suricata-verify 63.31% <0.00%> (-0.02%) ⬇️
unittests 58.45% <0.00%> (ø)

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

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.uptime 629 648 103.02%

Pipeline 24351

@victorjulien victorjulien added this to the 8.0 milestone Jan 26, 2025
@victorjulien victorjulien merged commit 9909669 into OISF:master Jan 27, 2025
60 checks passed
@victorjulien
Copy link
Member

Merged in #12480, thanks!

@jasonish jasonish deleted the rust-plugins/v2 branch January 27, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants