diff --git a/cpp-linter/src/rest_client/mod.rs b/cpp-linter/src/rest_client/mod.rs index fce028e..28bd766 100644 --- a/cpp-linter/src/rest_client/mod.rs +++ b/cpp-linter/src/rest_client/mod.rs @@ -81,6 +81,10 @@ impl RestClient { .collect()) } + pub fn is_debug_enabled(&self) -> bool { + self.client.is_debug_enabled() + } + pub fn start_log_group(&self, name: &str) { self.client.start_log_group(name) } diff --git a/cpp-linter/src/run.rs b/cpp-linter/src/run.rs index 27a39ee..fc2768a 100644 --- a/cpp-linter/src/run.rs +++ b/cpp-linter/src/run.rs @@ -70,9 +70,7 @@ pub async fn run_main(args: Vec) -> Result<()> { let mut rest_api_client = RestClient::new()?; set_max_level( - if cli.general_options.verbosity.is_debug() - /* || rest_api_client.debug_enabled */ - { + if cli.general_options.verbosity.is_debug() || rest_api_client.is_debug_enabled() { LevelFilter::Debug } else { LevelFilter::Info