Skip to content

Allow higher-level host log levels#2645

Merged
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:host-loglevel
Jan 11, 2023
Merged

Allow higher-level host log levels#2645
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:host-loglevel

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Jan 6, 2023

Previously if a host had a log level higher than the simulation log level, the host log level wouldn't take effect. Now you can specify higher host log levels (for example "trace") even if you specify a lower simulation log level (for example "info").

Closes #2643.

This doesn't appear to have any effect on runtime.

https://github.com/shadow/benchmark-results/tree/master/tor/2023-01-06-T17-24-59

run_time

@stevenengler stevenengler self-assigned this Jan 6, 2023
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Jan 6, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 6, 2023

Codecov Report

Base: 67.98% // Head: 68.10% // Increases project coverage by +0.12% 🎉

Coverage data is based on head (baf6e17) compared to base (1c49115).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2645      +/-   ##
==========================================
+ Coverage   67.98%   68.10%   +0.12%     
==========================================
  Files         202      202              
  Lines       30095    30100       +5     
  Branches     5853     5855       +2     
==========================================
+ Hits        20459    20500      +41     
+ Misses       4999     4954      -45     
- Partials     4637     4646       +9     
Flag Coverage Δ
tests 68.10% <100.00%> (+0.12%) ⬆️

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

Impacted Files Coverage Δ
src/main/core/logger/log_wrapper.rs 82.35% <ø> (+8.66%) ⬆️
src/main/core/logger/shadow_logger.rs 72.37% <100.00%> (+5.12%) ⬆️
src/main/core/main.rs 40.12% <100.00%> (-0.38%) ⬇️
src/main/host/syscall/handler/eventfd.rs 16.66% <0.00%> (-52.78%) ⬇️
src/main/host/descriptor/eventfd.rs 64.64% <0.00%> (-1.02%) ⬇️
src/main/host/descriptor/pipe.rs 84.37% <0.00%> (-0.63%) ⬇️
...c/main/utility/synchronization/count_down_latch.rs 85.10% <0.00%> (-0.54%) ⬇️
src/main/host/process.rs 83.16% <0.00%> (-0.13%) ⬇️
src/lib/tsc/tsc_test.c 12.67% <0.00%> (ø)
src/main/host/syscall/handler/socket.rs 68.85% <0.00%> (+0.63%) ⬆️
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stevenengler stevenengler marked this pull request as ready for review January 7, 2023 01:32
Previously if a host had a log level higher than the simulation log level, the
host log level wouldn't take effect. Now you can specify higher host log levels
(for example "trace") even if you specify a lower simulation log level (for
example "info").
@stevenengler stevenengler merged commit 49c64ee into shadow:main Jan 11, 2023
@stevenengler stevenengler deleted the host-loglevel branch January 11, 2023 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Host-specific log level appears to be broken

2 participants