Resume logging panics.

This commit is contained in:
Nolan Darilek 2022-02-17 11:13:57 -06:00
parent ea0b04da53
commit dee62d2dca

View File

@ -54,9 +54,7 @@ pub struct ErrorPlugin;
impl Plugin for ErrorPlugin {
fn build(&self, app: &mut App) {
if !cfg!(debug_assertions) {
init_panic_handler();
}
init_panic_handler();
if let Some(config) = app.world.get_resource::<ErrorConfig>() {
if let Some(dsn) = &config.sentry_dsn {
let release = config.version.clone().unwrap_or_else(|| "".to_string());