Skip to content

Commit e2fc088

Browse files
committed
ref(angular): Use debug instead of logger
1 parent cbff908 commit e2fc088

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/angular/src/sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import {
1212
import type { Client, Integration } from '@sentry/core';
1313
import {
1414
applySdkMetadata,
15+
debug,
1516
dedupeIntegration,
1617
functionToStringIntegration,
1718
inboundFiltersIntegration,
18-
logger,
1919
} from '@sentry/core';
2020
import { IS_DEBUG_BUILD } from './flags';
2121

@@ -68,7 +68,7 @@ function checkAndSetAngularVersion(): void {
6868
if (angularVersion) {
6969
if (angularVersion < ANGULAR_MINIMUM_VERSION) {
7070
IS_DEBUG_BUILD &&
71-
logger.warn(
71+
debug.warn(
7272
`This Sentry SDK does not officially support Angular ${angularVersion}.`,
7373
`This SDK only supports Angular ${ANGULAR_MINIMUM_VERSION} and above.`,
7474
"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.",

packages/angular/src/tracing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
startInactiveSpan,
2222
} from '@sentry/browser';
2323
import type { Integration, Span } from '@sentry/core';
24-
import { logger, stripUrlQueryAndFragment, timestampInSeconds } from '@sentry/core';
24+
import { debug, stripUrlQueryAndFragment, timestampInSeconds } from '@sentry/core';
2525
import type { Observable } from 'rxjs';
2626
import { Subscription } from 'rxjs';
2727
import { filter, tap } from 'rxjs/operators';
@@ -75,7 +75,7 @@ export class TraceService implements OnDestroy {
7575
tap(navigationEvent => {
7676
if (!instrumentationInitialized) {
7777
IS_DEBUG_BUILD &&
78-
logger.error('Angular integration has tracing enabled, but Tracing integration is not configured');
78+
debug.error('Angular integration has tracing enabled, but Tracing integration is not configured');
7979
return;
8080
}
8181

0 commit comments

Comments
 (0)