Skip to content

Commit d1a03e4

Browse files
committed
fix nestjs
1 parent cfbfecf commit d1a03e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nestjs/src/setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
} from '@nestjs/common';
99
import { Catch, Global, HttpException, Injectable, Logger, Module } from '@nestjs/common';
1010
import { APP_INTERCEPTOR, BaseExceptionFilter } from '@nestjs/core';
11-
import { captureException, getDefaultIsolationScope, getIsolationScope, logger } from '@sentry/core';
11+
import { captureException, debug, getDefaultIsolationScope, getIsolationScope } from '@sentry/core';
1212
import type { Observable } from 'rxjs';
1313
import { isExpectedError } from './helpers';
1414

@@ -49,7 +49,7 @@ class SentryTracingInterceptor implements NestInterceptor {
4949
*/
5050
public intercept(context: ExecutionContext, next: CallHandler): Observable<unknown> {
5151
if (getIsolationScope() === getDefaultIsolationScope()) {
52-
logger.warn('Isolation scope is still the default isolation scope, skipping setting transactionName.');
52+
debug.warn('Isolation scope is still the default isolation scope, skipping setting transactionName.');
5353
return next.handle();
5454
}
5555

0 commit comments

Comments
 (0)