unwrap on None in release build with no backtrace
A service I inherited calls .unwrap() on an Option in a request path. In debug I get a nice panic message, but in the release binary all I see is:
thread 'tokio-runtime-worker' panicked at src/handlers.rs:88:39:
called Option::unwrap() on a None value
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Setting RUST_BACKTRACE=1 in the container gave me a backtrace but it's stripped of symbols. How do people get useful panics out of release builds?
4 replies