Skip to main content

Module panic

Module panic 

Source
Expand description

The process’s panic hook. Rust runs the installed hook for every panic, on the panicking thread, before the unwinding reaches any catch_unwind, so what ulo redacts in a caught panic reaches its reports and never what the hook already printed; the default hook prints the raw message. install_redacting_hook replaces it with one that prints the message redacted. ulo never installs it: the hook is the process’s, and a library replacing it would replace the application’s own.

Functions§

install_redacting_hook
Replaces the process’s panic hook with one that prints each panic’s message after the redaction ulo applies to a panic it catches: every secret the process’s apps registered replaced by [redacted], and the userinfo of anything shaped like a URL stripped. For an application to call at the start of main, before anything can panic.