12
12
#include " sentry/sentry_options.h"
13
13
#include " sentry/sentry_sdk.h"
14
14
#include " sentry/sentry_user.h"
15
+ #include " sentry/util/print.h"
15
16
16
17
#include < godot_cpp/classes/engine.hpp>
17
18
#include < godot_cpp/classes/scene_tree.hpp>
@@ -37,8 +38,11 @@ using namespace sentry;
37
38
38
39
void initialize_module (ModuleInitializationLevel p_level) {
39
40
if (p_level == MODULE_INITIALIZATION_LEVEL_CORE) {
41
+ sentry::util::print_debug (" init level core" );
40
42
} else if (p_level == godot::MODULE_INITIALIZATION_LEVEL_SERVERS) {
43
+ sentry::util::print_debug (" init level servers" );
41
44
} else if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
45
+ sentry::util::print_debug (" init level scene" );
42
46
GDREGISTER_CLASS (SentryLoggerLimits);
43
47
GDREGISTER_CLASS (SentryOptions);
44
48
GDREGISTER_INTERNAL_CLASS (RuntimeConfig);
@@ -67,6 +71,7 @@ void initialize_module(ModuleInitializationLevel p_level) {
67
71
SentrySDK *sentry_singleton = memnew (SentrySDK);
68
72
Engine::get_singleton ()->register_singleton (" SentrySDK" , SentrySDK::get_singleton ());
69
73
} else if (p_level == MODULE_INITIALIZATION_LEVEL_EDITOR) {
74
+ sentry::util::print_debug (" init level editor" );
70
75
#ifdef TOOLS_ENABLED
71
76
#ifndef WINDOWS_ENABLED
72
77
GDREGISTER_INTERNAL_CLASS (SentryEditorExportPluginUnix);
@@ -94,7 +99,7 @@ GDExtensionBool GDE_EXPORT gdextension_init(GDExtensionInterfaceGetProcAddress p
94
99
95
100
init_obj.register_initializer (initialize_module);
96
101
init_obj.register_terminator (uninitialize_module);
97
- init_obj.set_minimum_library_initialization_level (MODULE_INITIALIZATION_LEVEL_SCENE );
102
+ init_obj.set_minimum_library_initialization_level (MODULE_INITIALIZATION_LEVEL_CORE );
98
103
99
104
return init_obj.init ();
100
105
}
0 commit comments