Skip to content

Commit 720b318

Browse files
antonisclaude
andcommitted
fix(core): Improve native init log message clarity
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 078ebe1 commit 720b318

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/core/src/js/sdk.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ export function init(passedOptions: ReactNativeOptions): void {
141141
};
142142

143143
if (!('autoInitializeNativeSdk' in userOptions) && RN_GLOBAL_OBJ.__SENTRY_OPTIONS__) {
144-
// We expect users to use the file options only in combination with manual native initialization
144+
// Options file is present, native SDK is expected to be initialized
145+
// before JS from the native app entry point (e.g. AppDelegate, MainApplication).
145146
// eslint-disable-next-line no-console
146-
console.info('Initializing Sentry JS with the options file. Expecting manual native initialization before JS. Native will not be initialized automatically.');
147+
console.info('[Sentry] Using options file. Native SDK is expected to be initialized before JS, skipping automatic native initialization from JS.');
147148
options.autoInitializeNativeSdk = false;
148149
}
149150

0 commit comments

Comments
 (0)