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

Config overhaul: rename log_level to threshold #942

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Jul 1, 2024

Rename config option log_level to threshold.

From:

[logging]
log_level = "info"

To:

[logging]
threshold = "info"

Threshold representts better the concept since this value is the security level at which the app stops collecting logs, meaning it filters out logs with a lower security level.

From:

```toml
[logging]
log_level = "info"
```

To:

```toml
[logging]
threshold = "info"
```

Threshold represetns better the concept since this value is the security
level at which the app stops collecting logs, meaning it filters out
logs with a lower security level.
@josecelano josecelano self-assigned this Jul 1, 2024
@josecelano josecelano added Enhancement / Feature Request Something New - Admin - Enjoyable to Install and Setup our Software UX User Experience labels Jul 1, 2024
@josecelano josecelano added this to the v3.0.0 milestone Jul 1, 2024
@josecelano josecelano linked an issue Jul 1, 2024 that may be closed by this pull request
@josecelano josecelano requested a review from da2ce7 July 1, 2024 16:59
@josecelano
Copy link
Member Author

josecelano commented Jul 1, 2024

ACK af61e20

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 68.42105% with 6 lines in your changes missing coverage. Please review.

Project coverage is 77.41%. Comparing base (b66adcc) to head (af61e20).

Files Patch % Lines
src/bootstrap/logging.rs 44.44% 5 Missing ⚠️
packages/configuration/src/v2/logging.rs 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #942   +/-   ##
========================================
  Coverage    77.41%   77.41%           
========================================
  Files          183      183           
  Lines         9674     9674           
========================================
  Hits          7489     7489           
  Misses        2185     2185           

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

@josecelano josecelano merged commit 400c74b into torrust:develop Jul 1, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Admin - Enjoyable to Install and Setup our Software Enhancement / Feature Request Something New UX User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config overhaul: rename log_level to threshold
1 participant