Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
hkctkuy authored and hkctkuy committed Aug 16, 2023
1 parent 7432c7b commit a207ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions casr/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use libcasr::stacktrace::{

use anyhow::{bail, Context, Result};
use clap::ArgMatches;
use log::{error, info, warn};
use log::{info, warn};
use simplelog::*;
use std::fs::OpenOptions;
use std::io::Write;
Expand Down Expand Up @@ -279,7 +279,7 @@ pub fn get_output(command: &mut Command, timeout: u64, error_on_timeout: bool) -
{
let _ = child.kill();
if error_on_timeout {
error!("Timeout: {:?}", command);
bail!("Timeout: {:?}", command);
} else {
warn!("Timeout: {:?}", command);
}
Expand Down

0 comments on commit a207ced

Please sign in to comment.