Skip to content

Commit e942c62

Browse files
author
William Armiros
committed
removed logging
1 parent 6c4ba28 commit e942c62

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/core/lib/patchers/http_p.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,13 @@ function enableCapture(module, downstreamXRayEnabled, subsegmentCallback) {
161161

162162
var cause = Utils.getCauseTypeFromHttpStatus(res.statusCode);
163163

164-
console.log('closing!!');
165-
166164
if (cause)
167165
subsegment[cause] = true;
168166

169167
subsegment.addRemoteRequestData(res.req, res, !!downstreamXRayEnabled);
170168
subsegment.close();
171169
});
172170

173-
// console.log(res.req.listenerCount('response'));
174-
175171
if (typeof callback === 'function') {
176172
if (contextUtils.isAutomaticMode()) {
177173
var session = contextUtils.getNamespace();
@@ -187,7 +183,6 @@ function enableCapture(module, downstreamXRayEnabled, subsegmentCallback) {
187183
// added by user application, then we consume the response so the 'end' event fires
188184
// See: https://nodejs.org/api/http.html#http_class_http_clientrequest
189185
} else if (res.req && res.req.listenerCount('response') === 0) {
190-
console.log('resuming!');
191186
res.resume();
192187
}
193188
});

0 commit comments

Comments
 (0)