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

Set log level via RUST_LOG #44

Merged
merged 4 commits into from
Mar 8, 2023
Merged

Set log level via RUST_LOG #44

merged 4 commits into from
Mar 8, 2023

Conversation

fredr
Copy link
Contributor

@fredr fredr commented Mar 7, 2023

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Set log level via the RUST_LOG env variable using EnvFilter. If not set, fall back to info level

@fredr fredr requested a review from bnjbvr March 7, 2023 16:10
@fredr fredr requested a review from Jake-Shadle as a code owner March 7, 2023 16:10
@fredr fredr self-assigned this Mar 7, 2023
@Jake-Shadle Jake-Shadle removed their request for review March 7, 2023 16:11
@bnjbvr bnjbvr changed the title Set log lever via RUST_LOG Set log level via RUST_LOG Mar 7, 2023
Copy link
Contributor

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

Thanks 🥳

@@ -221,7 221,6 @@ async fn no_description_none_required_pr_actions() {
async fn review_not_required_if_label_not_configured() {
use ReviewState::{Approved, ChangesRequested, Commented};

#[track_caller]
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think should keep this as possible test failures will point at the corresponding assert_approved below, instead of where this function calls assert_eq

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can re-add it, but according to rust-lang/rust#87417 it will do nothing (if I understand it correctly). I guess it will eventually be fixed, so I can re-add and ignore the warning instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@fredr fredr merged commit 620584f into main Mar 8, 2023
@fredr fredr deleted the fredr/logging-env-filter branch March 8, 2023 09:24
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.

None yet

3 participants