We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8efb27 commit 1dfbba9Copy full SHA for 1dfbba9
1 file changed
kani-driver/src/cbmc_property_renderer.rs
@@ -191,15 +191,14 @@ pub fn kani_cbmc_output_filter(
191
if let Some(fmt_item) = formatted_item {
192
if suppress_terminal {
193
// Write to log file instead of terminal
194
- if let Some(log_path) = log_file {
195
- if let Err(e) = write_to_log_file(log_path, &fmt_item) {
+ if let Some(log_path) = log_file
+ && let Err(e) = write_to_log_file(log_path, &fmt_item) {
196
eprintln!(
197
"Failed to write CBMC output to log file {}: {}",
198
log_path.display(),
199
e
200
);
201
}
202
- }
203
} else {
204
// Normal terminal output
205
println!("{fmt_item}");
0 commit comments