diff --git a/packages/google-cloud-serverless/src/gcpfunction/cloud_events.ts b/packages/google-cloud-serverless/src/gcpfunction/cloud_events.ts index 8e8bfca26d70..a5e9f886165d 100644 --- a/packages/google-cloud-serverless/src/gcpfunction/cloud_events.ts +++ b/packages/google-cloud-serverless/src/gcpfunction/cloud_events.ts @@ -1,6 +1,6 @@ import { + debug, handleCallbackErrors, - logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, } from '@sentry/core'; @@ -56,7 +56,7 @@ function _wrapCloudEventFunction( // eslint-disable-next-line @typescript-eslint/no-floating-promises flush(options.flushTimeout) .then(null, e => { - DEBUG_BUILD && logger.error(e); + DEBUG_BUILD && debug.error(e); }) .then(() => { if (typeof callback === 'function') { diff --git a/packages/google-cloud-serverless/src/gcpfunction/events.ts b/packages/google-cloud-serverless/src/gcpfunction/events.ts index 674e9033d7c0..2fece298ea05 100644 --- a/packages/google-cloud-serverless/src/gcpfunction/events.ts +++ b/packages/google-cloud-serverless/src/gcpfunction/events.ts @@ -1,6 +1,6 @@ import { + debug, handleCallbackErrors, - logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, } from '@sentry/core'; @@ -59,7 +59,7 @@ function _wrapEventFunction // eslint-disable-next-line @typescript-eslint/no-floating-promises flush(options.flushTimeout) .then(null, e => { - DEBUG_BUILD && logger.error(e); + DEBUG_BUILD && debug.error(e); }) .then(() => { if (typeof callback === 'function') { diff --git a/packages/google-cloud-serverless/src/gcpfunction/http.ts b/packages/google-cloud-serverless/src/gcpfunction/http.ts index 18ad8e4cefd2..46683372fa53 100644 --- a/packages/google-cloud-serverless/src/gcpfunction/http.ts +++ b/packages/google-cloud-serverless/src/gcpfunction/http.ts @@ -1,8 +1,8 @@ import { + debug, handleCallbackErrors, httpRequestToRequestData, isString, - logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, setHttpStatus, @@ -68,7 +68,7 @@ function _wrapHttpFunction(fn: HttpFunction, options: Partial): // eslint-disable-next-line @typescript-eslint/no-floating-promises flush(flushTimeout) .then(null, e => { - DEBUG_BUILD && logger.error(e); + DEBUG_BUILD && debug.error(e); }) .then(() => { _end.call(this, chunk, encoding, cb);