Skip to content

Commit 21b54d4

Browse files
authored
fix: respect verbosity per GitHub Actions env var (#346)
This was an oversight when switching to git-bot-feedback in #304. It restores the behavior in which verbosity is auto-enabled if the `ACTIONS_STEP_DEBUG` env var is asserted. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Enhanced debug logging configuration to respect REST client settings in addition to command-line verbosity options. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 45cfec0 commit 21b54d4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

cpp-linter/src/rest_client/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ impl RestClient {
8181
.collect())
8282
}
8383

84+
pub fn is_debug_enabled(&self) -> bool {
85+
self.client.is_debug_enabled()
86+
}
87+
8488
pub fn start_log_group(&self, name: &str) {
8589
self.client.start_log_group(name)
8690
}

cpp-linter/src/run.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ pub async fn run_main(args: Vec<String>) -> Result<()> {
7070

7171
let mut rest_api_client = RestClient::new()?;
7272
set_max_level(
73-
if cli.general_options.verbosity.is_debug()
74-
/* || rest_api_client.debug_enabled */
75-
{
73+
if cli.general_options.verbosity.is_debug() || rest_api_client.is_debug_enabled() {
7674
LevelFilter::Debug
7775
} else {
7876
LevelFilter::Info

0 commit comments

Comments
 (0)