diff --git a/src/commands/build.rs b/src/commands/build.rs index 09adb92..8e905d7 100644 --- a/src/commands/build.rs +++ b/src/commands/build.rs @@ -21,7 +21,6 @@ use crate::core::config::get_resource_type; use crate::core::utils::catch_error_and_exit; use crate::utils::connection::create_client; use crate::utils::display::{print_unicode_box, BorderColor}; -use crate::utils::logging::initialize_logger; /// Defines the `build` command for the CLI application. pub fn command() -> Command { @@ -47,7 +46,6 @@ pub fn command() -> Command { pub fn execute(matches: &ArgMatches) { let stack_dir_val = matches.get_one::("stack_dir").unwrap(); let stack_env_val = matches.get_one::("stack_env").unwrap(); - let log_level_val = matches.get_one::("log-level").unwrap(); let env_file_val = matches.get_one::("env-file").unwrap(); let env_vars: Vec = matches .get_many::("env") @@ -58,8 +56,6 @@ pub fn execute(matches: &ArgMatches) { let on_failure_val = matches.get_one::("on-failure").unwrap(); let output_file = matches.get_one::("output-file"); - initialize_logger(log_level_val); - let client = create_client(); let mut runner = CommandRunner::new( client, diff --git a/src/commands/teardown.rs b/src/commands/teardown.rs index 64e8fcb..b8c5b74 100644 --- a/src/commands/teardown.rs +++ b/src/commands/teardown.rs @@ -19,7 +19,6 @@ use crate::core::config::get_resource_type; use crate::core::utils::catch_error_and_exit; use crate::utils::connection::create_client; use crate::utils::display::{print_unicode_box, BorderColor}; -use crate::utils::logging::initialize_logger; /// Configures the `teardown` command for the CLI application. pub fn command() -> Command { @@ -39,7 +38,6 @@ pub fn command() -> Command { pub fn execute(matches: &ArgMatches) { let stack_dir_val = matches.get_one::("stack_dir").unwrap(); let stack_env_val = matches.get_one::("stack_env").unwrap(); - let log_level_val = matches.get_one::("log-level").unwrap(); let env_file_val = matches.get_one::("env-file").unwrap(); let env_vars: Vec = matches .get_many::("env") @@ -49,8 +47,6 @@ pub fn execute(matches: &ArgMatches) { let is_show_queries = matches.get_flag("show-queries"); let on_failure_val = matches.get_one::("on-failure").unwrap(); - initialize_logger(log_level_val); - let client = create_client(); let mut runner = CommandRunner::new( client, diff --git a/src/commands/test.rs b/src/commands/test.rs index 62dacd2..af742b3 100644 --- a/src/commands/test.rs +++ b/src/commands/test.rs @@ -21,7 +21,6 @@ use crate::core::config::get_resource_type; use crate::core::utils::catch_error_and_exit; use crate::utils::connection::create_client; use crate::utils::display::{print_unicode_box, BorderColor}; -use crate::utils::logging::initialize_logger; /// Configures the `test` command for the CLI application. pub fn command() -> Command { @@ -47,7 +46,6 @@ pub fn command() -> Command { pub fn execute(matches: &ArgMatches) { let stack_dir_val = matches.get_one::("stack_dir").unwrap(); let stack_env_val = matches.get_one::("stack_env").unwrap(); - let log_level_val = matches.get_one::("log-level").unwrap(); let env_file_val = matches.get_one::("env-file").unwrap(); let env_vars: Vec = matches .get_many::("env") @@ -58,8 +56,6 @@ pub fn execute(matches: &ArgMatches) { let on_failure_val = matches.get_one::("on-failure").unwrap(); let output_file = matches.get_one::("output-file"); - initialize_logger(log_level_val); - let client = create_client(); let mut runner = CommandRunner::new( client,