diff --git a/validator/src/bin/solana-test-validator.rs b/validator/src/bin/solana-test-validator.rs index dc77f4eac7..c6e76b5a2a 100644 --- a/validator/src/bin/solana-test-validator.rs +++ b/validator/src/bin/solana-test-validator.rs @@ -323,7 +323,7 @@ fn main() { let validator_log_symlink = ledger_path.join("validator.log"); - let logfile = if output != Output::Log { + let logfile = if output == Output::Log { let validator_log_with_timestamp = format!( "validator-{}.log", SystemTime::now()