Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chosungmann committed Oct 22, 2024
1 parent 35488a3 commit a7214de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ struct Delegate;

impl breakpad_rs::ExceptionHandlerDelegate for Delegate {
fn did_write_minidump(&self, working_path: String, minidump_id: String) {
log::debug!("[did_write_minidump] working_path={working_path} minidump_id={minidump_id}");
println!("[did_write_minidump] working_path={working_path} minidump_id={minidump_id}");
}

fn get_working_path(&self) -> String {
log::debug!("[get_working_path] return=.");
println!("[get_working_path] return=.");
String::from(".")
}

fn should_write_minidump(&self) -> bool {
log::debug!("[should_write_minidump] return=true");
println!("[should_write_minidump] return=true");
true
}
}

fn main() {
env_logger::init();
let _breakpad = breakpad_rs::Breakpad::new(Some(Box::new(Delegate)));
unsafe {
let null: *mut u8 = std::ptr::null_mut();
Expand Down

0 comments on commit a7214de

Please sign in to comment.