From e4c63471728bc85717d3a18c27739102d0dfbaf0 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 10 Jul 2025 14:14:26 -0400 Subject: [PATCH] ref(vue): Use `debug` in vue sdk --- packages/vue/src/tracing.ts | 4 ++-- packages/vue/test/integration/VueIntegration.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vue/src/tracing.ts b/packages/vue/src/tracing.ts index 202face147d9..f4708ddbd865 100644 --- a/packages/vue/src/tracing.ts +++ b/packages/vue/src/tracing.ts @@ -1,6 +1,6 @@ import { getActiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, startInactiveSpan } from '@sentry/browser'; import type { Span } from '@sentry/core'; -import { logger, timestampInSeconds } from '@sentry/core'; +import { debug, timestampInSeconds } from '@sentry/core'; import { DEFAULT_HOOKS } from './constants'; import { DEBUG_BUILD } from './debug-build'; import type { Hook, Operation, TracingOptions, ViewModel, Vue } from './types'; @@ -73,7 +73,7 @@ export const createTracingMixins = (options: Partial = {}): Mixi // eg. mount => ['beforeMount', 'mounted'] const internalHooks = HOOKS[operation]; if (!internalHooks) { - DEBUG_BUILD && logger.warn(`Unknown hook: ${operation}`); + DEBUG_BUILD && debug.warn(`Unknown hook: ${operation}`); continue; } diff --git a/packages/vue/test/integration/VueIntegration.test.ts b/packages/vue/test/integration/VueIntegration.test.ts index 200ec42dfaf4..81eb22254917 100644 --- a/packages/vue/test/integration/VueIntegration.test.ts +++ b/packages/vue/test/integration/VueIntegration.test.ts @@ -3,7 +3,7 @@ */ import type { Client } from '@sentry/core'; -import { logger } from '@sentry/core'; +import { debug } from '@sentry/core'; import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'; import { createApp } from 'vue'; import * as Sentry from '../../src'; @@ -35,7 +35,7 @@ describe('Sentry.VueIntegration', () => { warnings = []; loggerWarnings = []; - vi.spyOn(logger, 'warn').mockImplementation((message: unknown) => { + vi.spyOn(debug, 'warn').mockImplementation((message: unknown) => { loggerWarnings.push(message); });