From e2fc0889dc2e932104568559b45409b349beb891 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Tue, 15 Jul 2025 16:09:24 -0400 Subject: [PATCH] ref(angular): Use `debug` instead of `logger` --- packages/angular/src/sdk.ts | 4 ++-- packages/angular/src/tracing.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/angular/src/sdk.ts b/packages/angular/src/sdk.ts index 5a4ffbbde7ee..99dbb0354e82 100755 --- a/packages/angular/src/sdk.ts +++ b/packages/angular/src/sdk.ts @@ -12,10 +12,10 @@ import { import type { Client, Integration } from '@sentry/core'; import { applySdkMetadata, + debug, dedupeIntegration, functionToStringIntegration, inboundFiltersIntegration, - logger, } from '@sentry/core'; import { IS_DEBUG_BUILD } from './flags'; @@ -68,7 +68,7 @@ function checkAndSetAngularVersion(): void { if (angularVersion) { if (angularVersion < ANGULAR_MINIMUM_VERSION) { IS_DEBUG_BUILD && - logger.warn( + debug.warn( `This Sentry SDK does not officially support Angular ${angularVersion}.`, `This SDK only supports Angular ${ANGULAR_MINIMUM_VERSION} and above.`, "If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.", diff --git a/packages/angular/src/tracing.ts b/packages/angular/src/tracing.ts index 952eabbc8d6c..86d7a4771c9c 100644 --- a/packages/angular/src/tracing.ts +++ b/packages/angular/src/tracing.ts @@ -21,7 +21,7 @@ import { startInactiveSpan, } from '@sentry/browser'; import type { Integration, Span } from '@sentry/core'; -import { logger, stripUrlQueryAndFragment, timestampInSeconds } from '@sentry/core'; +import { debug, stripUrlQueryAndFragment, timestampInSeconds } from '@sentry/core'; import type { Observable } from 'rxjs'; import { Subscription } from 'rxjs'; import { filter, tap } from 'rxjs/operators'; @@ -75,7 +75,7 @@ export class TraceService implements OnDestroy { tap(navigationEvent => { if (!instrumentationInitialized) { IS_DEBUG_BUILD && - logger.error('Angular integration has tracing enabled, but Tracing integration is not configured'); + debug.error('Angular integration has tracing enabled, but Tracing integration is not configured'); return; }