mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-19 00:31:04 +00:00
Print to the stderr and print logs to stdout
This commit is contained in:
@@ -78,7 +78,6 @@ fn init_cli() -> anyhow::Result<Arguments> {
|
|||||||
.with_thread_names(true)
|
.with_thread_names(true)
|
||||||
.with_env_filter(EnvFilter::from_default_env())
|
.with_env_filter(EnvFilter::from_default_env())
|
||||||
.with_ansi(false)
|
.with_ansi(false)
|
||||||
.with_writer(std::io::stderr)
|
|
||||||
.pretty()
|
.pretty()
|
||||||
.finish();
|
.finish();
|
||||||
tracing::subscriber::set_global_default(subscriber)?;
|
tracing::subscriber::set_global_default(subscriber)?;
|
||||||
@@ -188,7 +187,7 @@ where
|
|||||||
.any(|value| value.is_some_and(|value| !value));
|
.any(|value| value.is_some_and(|value| !value));
|
||||||
|
|
||||||
if !contains_failures {
|
if !contains_failures {
|
||||||
println!(
|
eprintln!(
|
||||||
"{}Succeeded:{} {} - {:?}",
|
"{}Succeeded:{} {} - {:?}",
|
||||||
GREEN,
|
GREEN,
|
||||||
RESET,
|
RESET,
|
||||||
@@ -196,7 +195,7 @@ where
|
|||||||
solc_mode
|
solc_mode
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
println!(
|
eprintln!(
|
||||||
"{}Failed:{} {} - {:?}",
|
"{}Failed:{} {} - {:?}",
|
||||||
RED,
|
RED,
|
||||||
RESET,
|
RESET,
|
||||||
@@ -214,7 +213,7 @@ where
|
|||||||
case_status.sort_by(|a, b| a.0.cmp(&b.0));
|
case_status.sort_by(|a, b| a.0.cmp(&b.0));
|
||||||
for (_, case_name, case_status) in case_status.into_iter() {
|
for (_, case_name, case_status) in case_status.into_iter() {
|
||||||
if case_status {
|
if case_status {
|
||||||
println!(
|
eprintln!(
|
||||||
"{GREEN} Case Succeeded:{RESET} {}",
|
"{GREEN} Case Succeeded:{RESET} {}",
|
||||||
case_name
|
case_name
|
||||||
.as_ref()
|
.as_ref()
|
||||||
@@ -222,7 +221,7 @@ where
|
|||||||
.unwrap_or("Unnamed case")
|
.unwrap_or("Unnamed case")
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
println!(
|
eprintln!(
|
||||||
"{RED} Case Failed:{RESET} {}",
|
"{RED} Case Failed:{RESET} {}",
|
||||||
case_name
|
case_name
|
||||||
.as_ref()
|
.as_ref()
|
||||||
@@ -231,7 +230,7 @@ where
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
println!();
|
eprintln!();
|
||||||
|
|
||||||
entries_to_delete.push((metadata_file_path.clone(), solc_mode.clone()));
|
entries_to_delete.push((metadata_file_path.clone(), solc_mode.clone()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user