Resume logging panics.
This commit is contained in:
parent
ea0b04da53
commit
dee62d2dca
|
@ -54,9 +54,7 @@ pub struct ErrorPlugin;
|
|||
|
||||
impl Plugin for ErrorPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
if !cfg!(debug_assertions) {
|
||||
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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user