Skip to content

Commit 87d05bb

Browse files
committed
fix logger statements
1 parent 4ac0598 commit 87d05bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/node/src/integrations/http/SentryHttpInstrumentation.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
194194
* It has access to the final request and response objects.
195195
*/
196196
private _onOutgoingRequestFinish(request: http.ClientRequest, response?: http.IncomingMessage): void {
197-
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'Handling outgoing request finish');
197+
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'Handling finished outgoing request');
198198

199199
const _breadcrumbs = this.getConfig().breadcrumbs;
200200
const breadCrumbsEnabled = typeof _breadcrumbs === 'undefined' ? true : _breadcrumbs;
@@ -222,7 +222,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
222222
return;
223223
}
224224

225-
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'Patching server.emit!!!');
225+
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'Patching server.emit()');
226226

227227
// eslint-disable-next-line @typescript-eslint/no-this-alias
228228
const instrumentation = this;
@@ -235,7 +235,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
235235
return target.apply(thisArg, args);
236236
}
237237

238-
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'isolating incoming request');
238+
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'Handling incoming request');
239239

240240
const isolationScope = getIsolationScope().clone();
241241
const request = args[1] as http.IncomingMessage;
@@ -373,7 +373,7 @@ function patchRequestToCaptureBody(req: http.IncomingMessage, isolationScope: Sc
373373
const [event, listener, ...restArgs] = args;
374374

375375
if (event === 'data') {
376-
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'Handling request.on', event);
376+
DEBUG_BUILD && logger.log(INSTRUMENTATION_NAME, 'Handling request.on("data")');
377377
const callback = new Proxy(listener, {
378378
apply: (target, thisArg, args: Parameters<typeof listener>) => {
379379
try {

0 commit comments

Comments
 (0)