diff --git a/cmd/soroban-cli/src/print.rs b/cmd/soroban-cli/src/print.rs index f04567663..fd1eb3d58 100644 --- a/cmd/soroban-cli/src/print.rs +++ b/cmd/soroban-cli/src/print.rs @@ -18,21 +18,21 @@ impl Print { pub fn print(&self, message: T) { if !self.quiet { - print!("{message}"); + eprint!("{message}"); } } pub fn println(&self, message: T) { if !self.quiet { - println!("{message}"); + eprintln!("{message}"); } } pub fn clear_line(&self) { if cfg!(windows) { - print!("\r"); + eprint!("\r"); } else { - print!("\r\x1b[2K"); + eprint!("\r\x1b[2K"); } } @@ -66,14 +66,14 @@ macro_rules! create_print_functions { #[allow(dead_code)] pub fn $name(&self, message: T) { if !self.quiet { - print!("{} {}", $icon, message); + eprint!("{} {}", $icon, message); } } #[allow(dead_code)] pub fn $nameln(&self, message: T) { if !self.quiet { - println!("{} {}", $icon, message); + eprintln!("{} {}", $icon, message); } } }