Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Mar 28, 2024
1 parent 3baf9da commit 8a3c446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clash_lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ async fn start_async(opts: Options) -> Result<(), Error> {

let _g =
app::logging::setup_logging(config.general.log_level, log_collector, &cwd, opts.log_file)
.map_err(|x| Error::InvalidConfig(format!("failed to setup logging: {}", x)))?;
.map_err(|x| eprintln!("failed to setup logging: {}", x))
.unwrap_or_default();

let default_panic = std::panic::take_hook();
std::panic::set_hook(Box::new(move |info| {
Expand Down

0 comments on commit 8a3c446

Please sign in to comment.