Skip to content

Commit 4d152e6

Browse files
committed
fix: block logs in node
1 parent 8033316 commit 4d152e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/logs/src/boot/preStartLogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function createPreStartStrategy(
4444
const trackingConsentStateSubscription = trackingConsentState.observable.subscribe(tryStartLogs)
4545

4646
function tryStartLogs() {
47-
if (!cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
47+
if (isNodeEnvironment || !cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
4848
return
4949
}
5050

0 commit comments

Comments
 (0)