Skip to content

Commit c7a1e9a

Browse files
authored
ref(vue): Use debug in vue sdk (#16910)
resolves #16909
1 parent 9c7c6bf commit c7a1e9a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/vue/src/tracing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getActiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, startInactiveSpan } from '@sentry/browser';
22
import type { Span } from '@sentry/core';
3-
import { logger, timestampInSeconds } from '@sentry/core';
3+
import { debug, timestampInSeconds } from '@sentry/core';
44
import { DEFAULT_HOOKS } from './constants';
55
import { DEBUG_BUILD } from './debug-build';
66
import type { Hook, Operation, TracingOptions, ViewModel, Vue } from './types';
@@ -73,7 +73,7 @@ export const createTracingMixins = (options: Partial<TracingOptions> = {}): Mixi
7373
// eg. mount => ['beforeMount', 'mounted']
7474
const internalHooks = HOOKS[operation];
7575
if (!internalHooks) {
76-
DEBUG_BUILD && logger.warn(`Unknown hook: ${operation}`);
76+
DEBUG_BUILD && debug.warn(`Unknown hook: ${operation}`);
7777
continue;
7878
}
7979

packages/vue/test/integration/VueIntegration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import type { Client } from '@sentry/core';
6-
import { logger } from '@sentry/core';
6+
import { debug } from '@sentry/core';
77
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
88
import { createApp } from 'vue';
99
import * as Sentry from '../../src';
@@ -35,7 +35,7 @@ describe('Sentry.VueIntegration', () => {
3535
warnings = [];
3636
loggerWarnings = [];
3737

38-
vi.spyOn(logger, 'warn').mockImplementation((message: unknown) => {
38+
vi.spyOn(debug, 'warn').mockImplementation((message: unknown) => {
3939
loggerWarnings.push(message);
4040
});
4141

0 commit comments

Comments
 (0)