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

editoast: remove always-on directive #9478

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

woshilapin
Copy link
Contributor

This modification was done in order to bring logs for any request that comes in thanks to the tower_http::trace::TraceLayer middleware. But the code has a sneaky behavior where it's actually impossible to turn it of anymore.

For example, RUST_LOG=info,tower_http=none will still show tower_http logs.

Let's remove it.

@woshilapin woshilapin requested a review from a team as a code owner October 25, 2024 15:01
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2024

⚠️ 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 39.60%. Comparing base (86ad640) to head (7f653ca).
Report is 1 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #9478      +/-   ##
============================================
- Coverage     39.60%   39.60%   -0.01%     
  Complexity     2270     2270              
============================================
  Files          1300     1300              
  Lines         99154    99154              
  Branches       3282     3282              
============================================
- Hits          39270    39268       -2     
- Misses        57951    57953       +2     
  Partials       1933     1933              
Flag Coverage Δ
core 75.07% <ø> (ø)
editoast 73.22% <ø> (-0.01%) ⬇️
front 10.23% <ø> (ø)
gateway 2.19% <ø> (ø)
osrdyne 3.29% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 86.71% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@flomonster flomonster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, should we add an env var to the dockerfile to ensure logs in prod?

@github-actions github-actions bot added the area:editoast Work on Editoast Service label Oct 25, 2024
@woshilapin
Copy link
Contributor Author

Thanks, should we add an env var to the dockerfile to ensure logs in prod?

Good point. Done in 37a05a8.

This modification was done in order to bring logs for any request that comes in
thanks to the `tower_http::trace::TraceLayer` middleware. But the code has a
sneaky behavior where it's actually impossible to turn it of anymore.

For example, `RUST_LOG=info,tower_http=none` will still show `tower_http` logs.

Let's remove it.

Signed-off-by: Jean SIMARD <[email protected]>
@woshilapin woshilapin force-pushed the wsl/editoast/remove-http-tower-directive branch from 37a05a8 to 7f653ca Compare October 25, 2024 16:24
@woshilapin woshilapin enabled auto-merge October 25, 2024 16:24
@woshilapin woshilapin added this pull request to the merge queue Oct 25, 2024
Merged via the queue into dev with commit 672754f Oct 25, 2024
24 checks passed
@woshilapin woshilapin deleted the wsl/editoast/remove-http-tower-directive branch October 25, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:editoast Work on Editoast Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants