Skip to content

Commit f882080

Browse files
committed
fix: block logs in node
1 parent 6aecbef commit f882080

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
@@ -43,7 +43,7 @@ export function createPreStartStrategy(
4343
const trackingConsentStateSubscription = trackingConsentState.observable.subscribe(tryStartLogs)
4444

4545
function tryStartLogs() {
46-
if (!cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
46+
if (isNodeEnvironment || !cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
4747
return
4848
}
4949

0 commit comments

Comments
 (0)