-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathadd_sentry.patch
29 lines (29 loc) · 1.23 KB
/
add_sentry.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/Cargo.toml b/Cargo.toml
index 14a405ce4..b2fd34624 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3041,3 +3041,8 @@ panic = "abort"
rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"]
all-features = true
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
+
+[patch."https://github.com/bevyengine/bevy"]
+bevy_app = { path = "crates/bevy_app" }
+bevy_log = { path = "crates/bevy_log" }
+bevy_utils = { path = "crates/bevy_utils" }
diff --git a/crates/bevy_internal/src/default_plugins.rs b/crates/bevy_internal/src/default_plugins.rs
index 10d595df6..68e48d92a 100644
--- a/crates/bevy_internal/src/default_plugins.rs
+++ b/crates/bevy_internal/src/default_plugins.rs
@@ -44,7 +44,10 @@ impl PluginGroup for DefaultPlugins {
let mut group = PluginGroupBuilder::start::<Self>();
group = group
.add(bevy_app::PanicHandlerPlugin)
- .add(bevy_log::LogPlugin::default())
+ .add(bevy_log::LogPlugin {
+ custom_layer: vleue_sentry::sentry_reporter!(true),
+ ..Default::default()
+ })
.add(bevy_core::TaskPoolPlugin::default())
.add(bevy_core::TypeRegistrationPlugin)
.add(bevy_core::FrameCountPlugin)