Skip to content

Commit dd45d3b

Browse files
committed
ref: Move debug initialization as the first step
1 parent 9d1a74e commit dd45d3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/sdk.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ export function initAndBind<F extends Client, O extends Options>(
2121
options: O,
2222
defaultIntegrations: Integration[] = [],
2323
): void {
24-
if (getCurrentHub().getClient()) {
25-
return;
26-
}
27-
2824
if (options.debug) {
2925
logger.enable();
3026
}
3127

28+
if (getCurrentHub().getClient()) {
29+
return;
30+
}
31+
3232
const client = new clientClass(options);
3333
client.install();
3434

0 commit comments

Comments
 (0)