diff --git a/ci/nits.sh b/ci/nits.sh index 9ceb78428..81bd3de3f 100755 --- a/ci/nits.sh +++ b/ci/nits.sh @@ -20,6 +20,7 @@ declare prints=( declare print_free_tree=( 'core/src' 'faucet/src' + 'ledger/src' 'metrics/src' 'net-utils/src' 'runtime/src' diff --git a/ledger/src/blocktree.rs b/ledger/src/blocktree.rs index 76159f9c2..e4774d26e 100644 --- a/ledger/src/blocktree.rs +++ b/ledger/src/blocktree.rs @@ -2127,8 +2127,8 @@ pub fn create_new_ledger(ledger_path: &Path, genesis_config: &GenesisConfig) -> if !output.status.success() { use std::io::{Error as IOError, ErrorKind}; use std::str::from_utf8; - eprintln!("tar stdout: {}", from_utf8(&output.stdout).unwrap_or("?")); - eprintln!("tar stderr: {}", from_utf8(&output.stderr).unwrap_or("?")); + error!("tar stdout: {}", from_utf8(&output.stdout).unwrap_or("?")); + error!("tar stderr: {}", from_utf8(&output.stderr).unwrap_or("?")); return Err(BlocktreeError::IO(IOError::new( ErrorKind::Other, diff --git a/ledger/src/blocktree_processor.rs b/ledger/src/blocktree_processor.rs index 1c837cf61..677358f0e 100644 --- a/ledger/src/blocktree_processor.rs +++ b/ledger/src/blocktree_processor.rs @@ -1243,7 +1243,6 @@ pub mod tests { .unwrap(); // Should see only the parent of the dead children - println!("{:?}", bank_forks_info); assert_eq!(bank_forks_info.len(), 1); assert_eq!(bank_forks_info[0], BankForksInfo { bank_slot: 0 },); verify_fork_infos(&bank_forks, &bank_forks_info);