Skip to content

Commit 713ef4b

Browse files
authored
ref(google-cloud-serverless): Use debug instead of logger (#17026)
resolves #16948
1 parent 3f84de2 commit 713ef4b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/google-cloud-serverless/src/gcpfunction/cloud_events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2+
debug,
23
handleCallbackErrors,
3-
logger,
44
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
55
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
66
} from '@sentry/core';
@@ -56,7 +56,7 @@ function _wrapCloudEventFunction(
5656
// eslint-disable-next-line @typescript-eslint/no-floating-promises
5757
flush(options.flushTimeout)
5858
.then(null, e => {
59-
DEBUG_BUILD && logger.error(e);
59+
DEBUG_BUILD && debug.error(e);
6060
})
6161
.then(() => {
6262
if (typeof callback === 'function') {

packages/google-cloud-serverless/src/gcpfunction/events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2+
debug,
23
handleCallbackErrors,
3-
logger,
44
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
55
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
66
} from '@sentry/core';
@@ -59,7 +59,7 @@ function _wrapEventFunction<F extends EventFunction | EventFunctionWithCallback>
5959
// eslint-disable-next-line @typescript-eslint/no-floating-promises
6060
flush(options.flushTimeout)
6161
.then(null, e => {
62-
DEBUG_BUILD && logger.error(e);
62+
DEBUG_BUILD && debug.error(e);
6363
})
6464
.then(() => {
6565
if (typeof callback === 'function') {

packages/google-cloud-serverless/src/gcpfunction/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
2+
debug,
23
handleCallbackErrors,
34
httpRequestToRequestData,
45
isString,
5-
logger,
66
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
77
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
88
setHttpStatus,
@@ -68,7 +68,7 @@ function _wrapHttpFunction(fn: HttpFunction, options: Partial<WrapperOptions>):
6868
// eslint-disable-next-line @typescript-eslint/no-floating-promises
6969
flush(flushTimeout)
7070
.then(null, e => {
71-
DEBUG_BUILD && logger.error(e);
71+
DEBUG_BUILD && debug.error(e);
7272
})
7373
.then(() => {
7474
_end.call(this, chunk, encoding, cb);

0 commit comments

Comments
 (0)